Add method to draw a placeholder

This commit is contained in:
Philip Giuliani 2015-04-08 20:13:56 +02:00
parent b92d3f36a8
commit fc56c4e2ef

View File

@ -287,6 +287,16 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
this.context.clip();
},
// private
drawPlaceholder: function(rect) {
if (!this.useCanvas) {
return;
}
this.context.fillRect(rect.x, rect.y, rect.width, rect.height);
this.context.fillStyle = "#000000";
},
// private
drawDebugInfo: function( tile, count, i ){
if ( this.useCanvas ) {