mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Previous cleanup was a little too aggressive.
This commit is contained in:
parent
2ee59635fa
commit
66b8d7e191
@ -68,6 +68,8 @@ $.Drawer = function( options ) {
|
||||
}
|
||||
|
||||
this.viewer = options.viewer;
|
||||
this.viewport = options.viewport;
|
||||
this.debugGridColor = options.debugGridColor || $.DEFAULT_SETTINGS.debugGridColor;
|
||||
this.opacity = options.opacity === undefined ? $.DEFAULT_SETTINGS.opacity : options.opacity;
|
||||
|
||||
this.useCanvas = $.supportsCanvas && ( this.viewer ? this.viewer.useCanvas : true );
|
||||
|
@ -1098,6 +1098,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
viewport: _this.viewport,
|
||||
drawer: _this.drawer,
|
||||
tileCache: _this.tileCache,
|
||||
imageLoader: _this.imageLoader,
|
||||
x: options.x,
|
||||
y: options.y,
|
||||
width: options.width,
|
||||
@ -1899,7 +1900,8 @@ function openTileSource( viewer, source, options ) {
|
||||
viewer: _this,
|
||||
viewport: _this.viewport,
|
||||
element: _this.canvas,
|
||||
opacity: _this.opacity
|
||||
opacity: _this.opacity,
|
||||
debugGridColor: _this.debugGridColor
|
||||
});
|
||||
|
||||
var tiledImage = new $.TiledImage({
|
||||
|
Loading…
Reference in New Issue
Block a user