TomTom Maps for JavaScript
    Preparing search index...

    Type Alias KnobRange

    Inclusive bounds for a factor, number or offset knob, on an offset for each of x and y. step is what a slider would use.

    bounds says which ends a value must keep to, as validateKnobValue checks:

    • hard: both, e.g. an opacity or a factor. Outside them, the value is invalid.
    • hard-min: min is a floor, e.g. no height below 0 m. max is where a control's span ends, and a larger value still applies.
    • soft: neither. The range is the span a control offers, and any number applies.
    type KnobRange = {
        bounds: "hard" | "hard-min" | "soft";
        max: number;
        min: number;
        step?: number;
    }
    Index
    bounds: "hard" | "hard-min" | "soft"
    max: number
    min: number
    step?: number