Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Spacing"

Index

Classes

Interfaces

Functions

Functions

spacingRatio

  • spacingRatio(last: number, delta: number, normal: number): number
  • Calculates the steps of the spacings. Adds an increasing delta to the value each time for upper bounds. For lower bounds, reduces values by a ratio.

    Parameters

    • last: number

      the previous step value

    • delta: number

      the scale to increase/decrease by

    • normal: number

      the 500 division

    Returns number

    the next step value