mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-08 02:49:22 +03:00
Add method to draw a placeholder
This commit is contained in:
parent
b92d3f36a8
commit
fc56c4e2ef
@ -287,6 +287,16 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
|
|||||||
this.context.clip();
|
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
|
// private
|
||||||
drawDebugInfo: function( tile, count, i ){
|
drawDebugInfo: function( tile, count, i ){
|
||||||
if ( this.useCanvas ) {
|
if ( this.useCanvas ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user