brepjs API Reference
    Preparing search index...

    Interface NumberParamDef

    A numeric parameter. min and max are inclusive limits that resolveParams enforces.

    interface NumberParamDef {
        default: number;
        description?: string;
        group?: string;
        integer?: boolean;
        label?: string;
        max?: number;
        min?: number;
        step?: number;
        type: "number";
        unit?: string;
    }

    Hierarchy

    • ParamDefBase
      • NumberParamDef
    Index
    default: number
    description?: string
    group?: string

    Tools show parameters with the same group together.

    integer?: boolean

    When true, resolveParams rejects a value with a fraction (a count of holes or teeth).

    label?: string

    Display name. Tools fall back to the parameter key.

    max?: number
    min?: number
    step?: number

    Increment for a slider or a stepper. It is a display hint, not a constraint.

    type: "number"
    unit?: string

    Display unit, for example 'mm' or 'deg'.