Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function computeNiceValue

    • Pick a "nice" round number (1, 2, 5 × 10^n) closest to the raw value. These are the standard scale bar increments used in microscopy.

      Parameters

      • raw: number

      Returns number