metamorphosis
    Preparing search index...

    Variable scaleValueConst

    scaleValue: NumericalInterpolator = ...

    Multiplies each step by the start value.

    Useful when using array steps with custom percentages.

    For example:

    const spacingControl = new ControlVar(Unit.rem, 1)
    const spacingSteps = [0, 1, 2, 3]
    const spacing = new InterpolatedVars("spacing", Unit.rem, [spacingControl], {
    steps: spacingSteps,
    interpolator: createNumericalInterpolator(scaleValue),
    })
    // spacing values are now [0rem, 1rem, 2rem, 3rem]
    spacingControl.set(2)
    // scales to [0rem, 2rem, 4rem, 6rem]