ixfx
    Preparing search index...

    Function proportion

    • Scales a percentage-scale number, ie: v * t.

      The utility of this function is that it sanity-checks that both parameters are in the 0..1 scale.

      Parameters can also be a function that takes no parameters and returns a number. It will be invoked when proportion is called.

      Parameters

      • v: number | (() => number)

        Value

      • t: number | (() => number)

        Scale amount

      Returns number

      Scaled value