PHP Classes

File: vendors/jqvmap/src/ColorScale/setNormalizeFunction.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/jqvmap/src/ColorScale/setNormalizeFunction.js   Download  
File: vendors/jqvmap/src/ColorScale/setNormalizeFunction.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 339 bytes
 

Contents

Class file image Download
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); };