invalidates pointarray when not cumulative
This commit is contained in:
parent
171a5b6e0c
commit
68ff448f78
@ -118,8 +118,9 @@ BallRenderer.prototype = {
|
|||||||
expandArray: function(){
|
expandArray: function(){
|
||||||
|
|
||||||
},
|
},
|
||||||
invalidate: function(){
|
invalidate: function(full){
|
||||||
this.pointLayer = this.contourLayer = this.isoplethLayer = new Uint8ClampedArray(this.size * 4);
|
if(full) this.pointLayer = new Uint8ClampedArray(this.size * 4);
|
||||||
|
this.contourLayer = this.isoplethLayer = new Uint8ClampedArray(this.size * 4);
|
||||||
},
|
},
|
||||||
getRIndexPos: function(x,y){
|
getRIndexPos: function(x,y){
|
||||||
var rIndexPos = (y*this.width+x)*4;
|
var rIndexPos = (y*this.width+x)*4;
|
||||||
|
Loading…
Reference in New Issue
Block a user