Options
All
  • Public
  • Public/Protected
  • All
Menu

a mapping function based on a d3 scale (linear, sqrt, log)

Hierarchy

  • ScaleMappingFunction

Implements

Index

Constructors

constructor

  • new ScaleMappingFunction(domain?: number[], type?: string, range?: number[]): ScaleMappingFunction

Accessors

domain

  • get domain(): number[]
  • set domain(domain: number[]): void

range

  • get range(): number[]
  • set range(range: number[]): void

scaleType

  • get scaleType(): string

Methods

apply

  • apply(v: number): number

clone

dump

  • dump(): any

eq

getRange

  • getRange(format: function): [string, string]
  • Parameters

    • format: function
        • (v: number): string
        • Parameters

          • v: number

          Returns string

    Returns [string, string]

invert

  • invert(r: number): number

restore

  • restore(dump: any): void