reindenting
This commit is contained in:
parent
9ad0ce8582
commit
219178a8f2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user