Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontInterpolator

Hierarchy

Callable

  • FontInterpolator(x: number): Font
  • Parameters

    • x: number

    Returns Font

Index

Constructors

constructor

Properties

Readonly domain

domain: LinearDomain

Readonly familyInterpolator

familyInterpolator: Interpolator<string | readonly string[]>

Readonly heightInterpolator

heightInterpolator: Interpolator<null | LineHeight>

Readonly range

Readonly sizeInterpolator

sizeInterpolator: Interpolator<null | FontSize>

Readonly stretchInterpolator

stretchInterpolator: Interpolator<undefined | FontStretch>

Readonly styleInterpolator

styleInterpolator: Interpolator<undefined | FontStyle>

Readonly variantInterpolator

variantInterpolator: Interpolator<undefined | FontVariant>

Readonly weightInterpolator

weightInterpolator: Interpolator<undefined | FontWeight>

Accessors

0

  • Returns Font

1

  • Returns Font

Methods

canEqual

  • canEqual(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

interpolateTo

map

  • Type parameters

    • FY

    Parameters

    • transform: (y: Font) => FY
        • Parameters

          Returns FY

    Returns Interpolator<FY>

toString

  • toString(): string
  • Returns string

Generated using TypeDoc