Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Linear

Type parameters

  • Range

  • Output

Hierarchy

  • Linear

Callable

  • __call(x: number): Output

Index

Methods

clamp

  • clamp(): boolean
  • clamp(clamp: boolean): Linear<Range, Output>

copy

  • copy(): Linear<Range, Output>

domain

  • domain(): number[]
  • domain(numbers: number[]): Linear<Range, Output>

interpolate

  • interpolate(): function
  • interpolate(factory: function): Linear<Range, Output>
  • Returns function

      • (a: Range, b: Range): function
      • Parameters

        • a: Range
        • b: Range

        Returns function

          • (t: number): Output
          • Parameters

            • t: number

            Returns Output

  • Parameters

    • factory: function
        • (a: Range, b: Range): function
        • Parameters

          • a: Range
          • b: Range

          Returns function

            • (t: number): Output
            • Parameters

              • t: number

              Returns Output

    Returns Linear<Range, Output>

invert

  • invert(y: number): number

nice

  • nice(count?: number): Linear<Range, Output>

range

  • range(): Range[]
  • range(values: Range[]): Linear<Range, Output>

rangeRound

  • rangeRound(values: number[]): Linear<number, number>

tickFormat

  • tickFormat(count?: number, format?: string): function
  • Parameters

    • Optional count: number
    • Optional format: string

    Returns function

      • (n: number): string
      • Parameters

        • n: number

        Returns string

ticks

  • ticks(count?: number): number[]

Generated using TypeDoc