mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
refactoring after lint left an error related to drawer and overlays
This commit is contained in:
parent
a0fd2b3324
commit
0540e834b4
@ -6,7 +6,7 @@
|
||||
PROJECT: openseadragon
|
||||
BUILD_MAJOR: 0
|
||||
BUILD_MINOR: 9
|
||||
BUILD_ID: 113s
|
||||
BUILD_ID: 114
|
||||
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*globals OpenSeadragon*/
|
||||
|
||||
/**
|
||||
* @version OpenSeadragon 0.9.113s
|
||||
* @version OpenSeadragon 0.9.114
|
||||
*
|
||||
* @fileOverview
|
||||
* <h2>
|
||||
@ -8614,7 +8614,7 @@ $.Drawer = function( options ) {
|
||||
for( i = 0; i < this.overlays.length; i++ ){
|
||||
if( $.isPlainObject( this.overlays[ i ] ) ){
|
||||
|
||||
addOverlayFromConfiguration( this, this.overlays[ i ]);
|
||||
this.overlays[ i ] = addOverlayFromConfiguration( this, this.overlays[ i ]);
|
||||
|
||||
} else if ( $.isFunction( this.overlays[ i ] ) ){
|
||||
//TODO
|
||||
@ -8856,13 +8856,13 @@ $.Drawer.prototype = {
|
||||
rect = drawer.viewport.imageToViewportRectangle( rect );
|
||||
}
|
||||
if( overlay.placement ){
|
||||
drawer.overlays[ i ] = new $.Overlay(
|
||||
return new $.Overlay(
|
||||
element,
|
||||
drawer.viewport.pointFromPixel(rect),
|
||||
$.OverlayPlacement[overlay.placement.toUpperCase()]
|
||||
);
|
||||
}else{
|
||||
drawer.overlays[ i ] = new $.Overlay( element, rect );
|
||||
return new $.Overlay( element, rect );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "openseadragon",
|
||||
"version": "0.9.113"
|
||||
"version": "0.9.114"
|
||||
}
|
@ -111,7 +111,7 @@ $.Drawer = function( options ) {
|
||||
for( i = 0; i < this.overlays.length; i++ ){
|
||||
if( $.isPlainObject( this.overlays[ i ] ) ){
|
||||
|
||||
addOverlayFromConfiguration( this, this.overlays[ i ]);
|
||||
this.overlays[ i ] = addOverlayFromConfiguration( this, this.overlays[ i ]);
|
||||
|
||||
} else if ( $.isFunction( this.overlays[ i ] ) ){
|
||||
//TODO
|
||||
@ -353,13 +353,13 @@ $.Drawer.prototype = {
|
||||
rect = drawer.viewport.imageToViewportRectangle( rect );
|
||||
}
|
||||
if( overlay.placement ){
|
||||
drawer.overlays[ i ] = new $.Overlay(
|
||||
return new $.Overlay(
|
||||
element,
|
||||
drawer.viewport.pointFromPixel(rect),
|
||||
$.OverlayPlacement[overlay.placement.toUpperCase()]
|
||||
);
|
||||
}else{
|
||||
drawer.overlays[ i ] = new $.Overlay( element, rect );
|
||||
return new $.Overlay( element, rect );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user