Sha256: 4b0bb3bab60ecbf14fda62fee764b192d3032830f0ddca4bbeff7138f2b11cca

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

ColorScale.prototype.setNormalizeFunction = function (f) {
  if (f === 'polynomial') {
    this.normalize = function (value) {
      return Math.pow(value, 0.2);
    };
  } else if (f === 'linear') {
    delete this.normalize;
  } else {
    this.normalize = f;
  }
  this.setMin(this.clearMinValue);
  this.setMax(this.clearMaxValue);
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/jqvmap/src/ColorScale/setNormalizeFunction.js
rails_modular_admin-0.4.0 app/assets/node_modules/jqvmap/src/ColorScale/setNormalizeFunction.js