Fray Electron
    Preparing search index...

    Interface ScrubbingRules

    Numeric limits and accepted units for a scrubbing value.

    interface ScrubbingRules {
        decimals?: number;
        max?: number;
        min?: number;
        plainScale?: number;
        step: number;
        units: readonly string[];
    }
    Index
    decimals?: number

    Decimal places kept in results; defaults to the step's.

    max?: number
    min?: number
    plainScale?: number

    Multiplier that converts stored unit-less values into the field's unit, such as 100 to show a stored 0.4 as 40%. Typed input is never scaled.

    step: number

    Amount a drag changes the value per pixel, and the resolution of results.

    units: readonly string[]

    Accepted units; an empty string allows a plain number.