Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Store = (function StoreClosure() {
let Store = (function StoreClosure() {

var Store = function Store(config) {
let Store = function Store(config) {
this._coordinator = {};
this._data = [];
this._radi = [];
Expand All @@ -15,19 +15,19 @@ var Store = (function StoreClosure() {
}
};

var defaultRadius = HeatmapConfig.defaultRadius;
let defaultRadius = HeatmapConfig.defaultRadius;

Store.prototype = {
// when forceRender = false -> called from setData, omits renderall event
_organiseData: function(dataPoint, forceRender) {
var x = dataPoint[this._xField];
var y = dataPoint[this._yField];
var radi = this._radi;
var store = this._data;
var max = this._max;
var min = this._min;
var value = dataPoint[this._valueField] || 1;
var radius = dataPoint.radius || this._cfgRadius || defaultRadius;
let x = dataPoint[this._xField];
let y = dataPoint[this._yField];
let radi = this._radi;
let store = this._data;
let max = this._max;
let min = this._min;
let value = dataPoint[this._valueField] || 1;
let radius = dataPoint.radius || this._cfgRadius || defaultRadius;

if (!store[x]) {
store[x] = [];
Expand Down Expand Up @@ -210,4 +210,4 @@ var Store = (function StoreClosure() {


return Store;
})();
})();