Checks a value against a catalogue entry's kind, options and range, as far as the range's bounds hold.
bounds
The knob's entry in its catalogue.
A color must parse as a CSS colour. An image or text value need only be a string. Only a loaded map knows whether the sprite has the image.
color
image
text
RangeError naming the knob and what it expects, for a value it does not take.
RangeError
const knob = knobEntryOf(trafficIncidentsKnobCatalogue, 'filters.magnitudes.values');validateKnobValue(knob, ['major', 'severe']); // RangeError: … 'severe' is not Copy
const knob = knobEntryOf(trafficIncidentsKnobCatalogue, 'filters.magnitudes.values');validateKnobValue(knob, ['major', 'severe']); // RangeError: … 'severe' is not
Checks a value against a catalogue entry's kind, options and range, as far as the range's
boundshold.