Closed veillette closed 7 years ago
HSlider currently uses LinearFunction internally to map slider positions to model values. A more general approach would be to pass a mapping function in via options
, with LinearFunction being the default.
I'll look into adding a value mapping function with HSlider.
Handled with DynamicProperty's ability to apply a map/inverseMap between it and its source Property.
What is a good pattern to create sliders with non-linear behavior, i,e, where the property of the slider doesn't map linearly to the needed property for the model.
Here is the example in Pendulum-lab.
Notice how sliderProperty updates the frictionProperty which itself updates the sliderProperty. The slider works by the way.