Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
unsatisfiableness
/
vendors
/
jqvmap
/
src
/
ColorScale
:
setNormalizeFunction.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
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); };