reindenting

This commit is contained in:
Francisco Dans 2015-08-20 13:37:49 +02:00
parent 9ad0ce8582
commit 219178a8f2

View File

@ -27,6 +27,7 @@ torque.extend(IsoRenderer.prototype, torque.Event, {
this._shader = shader;
this._Map = this._shader.getDefault().getStyle({}, { zoom: 0 });
},
clearCanvas: function() {
var canvas = this._canvas;
var color = this._Map['-torque-clear-color']
@ -42,11 +43,13 @@ torque.extend(IsoRenderer.prototype, torque.Event, {
ctx.fillRect(0, 0, canvas.width, canvas.height);
}
},
_createCanvas: function() {
return this.options.canvasClass
? new this.options.canvasClass()
: document.createElement('canvas');
},
renderTile: function(tile, key, pos) {
var layers = this._shader.getLayers();
for (var i = 0, n = layers.length; i < n; ++i) {