mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +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.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.opacity = options.opacity === undefined ? $.DEFAULT_SETTINGS.opacity : options.opacity;
|
||||||
|
|
||||||
this.useCanvas = $.supportsCanvas && ( this.viewer ? this.viewer.useCanvas : true );
|
this.useCanvas = $.supportsCanvas && ( this.viewer ? this.viewer.useCanvas : true );
|
||||||
|
@ -1098,6 +1098,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
viewport: _this.viewport,
|
viewport: _this.viewport,
|
||||||
drawer: _this.drawer,
|
drawer: _this.drawer,
|
||||||
tileCache: _this.tileCache,
|
tileCache: _this.tileCache,
|
||||||
|
imageLoader: _this.imageLoader,
|
||||||
x: options.x,
|
x: options.x,
|
||||||
y: options.y,
|
y: options.y,
|
||||||
width: options.width,
|
width: options.width,
|
||||||
@ -1899,7 +1900,8 @@ function openTileSource( viewer, source, options ) {
|
|||||||
viewer: _this,
|
viewer: _this,
|
||||||
viewport: _this.viewport,
|
viewport: _this.viewport,
|
||||||
element: _this.canvas,
|
element: _this.canvas,
|
||||||
opacity: _this.opacity
|
opacity: _this.opacity,
|
||||||
|
debugGridColor: _this.debugGridColor
|
||||||
});
|
});
|
||||||
|
|
||||||
var tiledImage = new $.TiledImage({
|
var tiledImage = new $.TiledImage({
|
||||||
|
Loading…
Reference in New Issue
Block a user