mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
removed overlayplacement.js from the build
This commit is contained in:
parent
97d2f0c765
commit
d702810ae7
@ -24,7 +24,6 @@
|
||||
<file name="src/utils.js" />
|
||||
<file name="src/mousetracker.js" />
|
||||
<file name="src/controlanchor.js" />
|
||||
<file name="src/overlayplacement.js" />
|
||||
<file name="src/navcontrol.js" />
|
||||
<file name="src/control.js" />
|
||||
<file name="src/viewer.js" />
|
||||
|
@ -1218,26 +1218,6 @@ $.Utils = new $.Utils();
|
||||
}( OpenSeadragon ));
|
||||
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.OverlayPlacement = function() {
|
||||
throw Error.invalidOperation();
|
||||
};
|
||||
|
||||
$.OverlayPlacement = {
|
||||
CENTER: 0,
|
||||
TOP_LEFT: 1,
|
||||
TOP: 2,
|
||||
TOP_RIGHT: 3,
|
||||
RIGHT: 4,
|
||||
BOTTOM_RIGHT: 5,
|
||||
BOTTOM: 6,
|
||||
BOTTOM_LEFT: 7,
|
||||
LEFT: 8
|
||||
};
|
||||
|
||||
}( OpenSeadragon ));
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.NavControl = function(viewer) {
|
||||
@ -2601,8 +2581,12 @@ $.TileSource.prototype = {
|
||||
|
||||
tileExists: function( level, x, y ) {
|
||||
var numTiles = this.getNumTiles( level );
|
||||
return level >= this.minLevel && level <= this.maxLevel &&
|
||||
x >= 0 && y >= 0 && x < numTiles.x && y < numTiles.y;
|
||||
return level >= this.minLevel &&
|
||||
level <= this.maxLevel &&
|
||||
x >= 0 &&
|
||||
y >= 0 &&
|
||||
x < numTiles.x &&
|
||||
y < numTiles.y;
|
||||
}
|
||||
};
|
||||
|
||||
@ -3415,14 +3399,30 @@ $.Tile.prototype = {
|
||||
|
||||
(function( $ ){
|
||||
|
||||
|
||||
$.OverlayPlacement = {
|
||||
CENTER: 0,
|
||||
TOP_LEFT: 1,
|
||||
TOP: 2,
|
||||
TOP_RIGHT: 3,
|
||||
RIGHT: 4,
|
||||
BOTTOM_RIGHT: 5,
|
||||
BOTTOM: 6,
|
||||
BOTTOM_LEFT: 7,
|
||||
LEFT: 8
|
||||
};
|
||||
|
||||
$.Overlay = function(elmt, loc, placement) {
|
||||
this.elmt = elmt;
|
||||
this.scales = (loc instanceof $.Rect);
|
||||
this.bounds = new $.Rect(loc.x, loc.y, loc.width, loc.height);
|
||||
this.placement = loc instanceof $.Point ? placement : $.OverlayPlacement.TOP_LEFT; // rects are always top-left
|
||||
this.position = new $.Point(loc.x, loc.y);
|
||||
this.size = new $.Point(loc.width, loc.height);
|
||||
this.style = elmt.style;
|
||||
// rects are always top-left
|
||||
this.placement = loc instanceof $.Point ?
|
||||
placement :
|
||||
$.OverlayPlacement.TOP_LEFT;
|
||||
};
|
||||
|
||||
$.Overlay.prototype = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user