Feature/ec 102 better legend
Locked Legend
The following change adjusts the legend so that specific values can be entered in using the keyboard. The legend now has two additional controls, a
The slide operation continues to work as it previously did. However, now you can manually enter min/max values by clicking (but not dragging) on the relevant handle.
Internal changes
I have abstracted out the logic of the legend from the climate change model to a new model Legend
. The ColourPalette
model can optionally take a legend which it will listen to. The legend now only deals with 1% increments/decrements, this fixes unwanted updates triggered by jquery ui and avoids a double representation of 0% (seen as 0% and -0%)
for review