Previous cleanup was a little too aggressive.

This commit is contained in:
Ian Gilman 2014-08-12 16:15:17 -07:00
parent 2ee59635fa
commit 66b8d7e191
2 changed files with 5 additions and 1 deletions

View File

@ -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 );

View File

@ -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({