SymlogScale constructor

SymlogScale({
  1. List<double>? domain,
  2. List<double>? range,
  3. bool clamp = false,
  4. double constant = 1,
})

Creates a symlog scale with the given parameters.

Implementation

SymlogScale({
  List<double>? domain,
  List<double>? range,
  bool clamp = false,
  double constant = 1,
})  : _domain = domain ?? [-1, 1],
      _range = range ?? [0, 1],
      _clamp = clamp,
      _constant = constant;