invalidates pointarray when not cumulative

This commit is contained in:
Francisco Dans 2015-02-25 18:02:41 +01:00
parent 171a5b6e0c
commit 68ff448f78

View File

@ -118,8 +118,9 @@ BallRenderer.prototype = {
expandArray: function(){
},
invalidate: function(){
this.pointLayer = this.contourLayer = this.isoplethLayer = new Uint8ClampedArray(this.size * 4);
invalidate: function(full){
if(full) this.pointLayer = new Uint8ClampedArray(this.size * 4);
this.contourLayer = this.isoplethLayer = new Uint8ClampedArray(this.size * 4);
},
getRIndexPos: function(x,y){
var rIndexPos = (y*this.width+x)*4;