unimportant tweaks
This commit is contained in:
parent
bfd28c9a7d
commit
7d7cd9fefd
@ -1,11 +1,12 @@
|
||||
////////////////////////////////
|
||||
// Torque BallRenderer
|
||||
// CartoDB, 2015
|
||||
// developed by Francisco Dans
|
||||
////////////////////////////////
|
||||
//////////////////////////////////
|
||||
// Torque BallRenderer //
|
||||
// CartoDB, 2015 //
|
||||
// developed by Francisco Dans //
|
||||
//////////////////////////////////
|
||||
|
||||
function BallRenderer(thecanvas){
|
||||
this.canvas = thecanvas;
|
||||
function BallRenderer(torqueLayer){
|
||||
this.torqueLayer = torqueLayer;
|
||||
this.canvas = torqueLayer.renderer._canvas;
|
||||
this.ctx = this.canvas.getContext("2d");
|
||||
this.width = this.canvas.width;
|
||||
this.chWidth = this.canvas.width * 4;
|
||||
@ -92,7 +93,7 @@ BallRenderer.prototype = {
|
||||
// Assumes xi is on the left and xf is on the right
|
||||
if(typeof this.drawnTemp[yi] === "undefined"){
|
||||
while (xi <= xf){
|
||||
this.addPoint(xi, yi, 20 - ((20 * this.lineDistance(xi, yi,x0,y0)) / this.radius));
|
||||
this.addPoint(xi, yi, 50 - ((50 * this.lineDistance(xi, yi,x0,y0)) / this.radius));
|
||||
++xi;
|
||||
}
|
||||
this.drawnTemp[yi]=true;
|
||||
@ -289,10 +290,6 @@ BallRenderer.prototype = {
|
||||
},
|
||||
|
||||
colorize: function () {
|
||||
// if (!this.colorWorkers){
|
||||
// this.initColorWorkers();
|
||||
// }
|
||||
// this.colorWorkers[0].postMessage([this.pointLayer, 123]);
|
||||
var grad = this.gradientData;
|
||||
if(!this.heatmapLayer) this.heatmapLayer = new Uint8ClampedArray(this.size * 4);
|
||||
for (var i = this.pointLayer.length-4, alpha; i>=0; i-=4){
|
||||
|
Loading…
Reference in New Issue
Block a user