mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-07 18:39:23 +03:00
Fix typo
This commit is contained in:
parent
3c446663c3
commit
3524386543
@ -200,28 +200,28 @@
|
|||||||
|
|
||||||
var assessViewerInCorner = function (theContentCorner) {
|
var assessViewerInCorner = function (theContentCorner) {
|
||||||
return function () {
|
return function () {
|
||||||
var expectedXCoordinate, expecteYCoordinate;
|
var expectedXCoordinate, expectedYCoordinate;
|
||||||
if (theContentCorner === "TOPLEFT") {
|
if (theContentCorner === "TOPLEFT") {
|
||||||
expectedXCoordinate = 0;
|
expectedXCoordinate = 0;
|
||||||
expecteYCoordinate = 0;
|
expectedYCoordinate = 0;
|
||||||
}
|
}
|
||||||
else if (theContentCorner === "TOPRIGHT") {
|
else if (theContentCorner === "TOPRIGHT") {
|
||||||
expectedXCoordinate = 1 - viewer.viewport.getBounds().width;
|
expectedXCoordinate = 1 - viewer.viewport.getBounds().width;
|
||||||
expecteYCoordinate = 0;
|
expectedYCoordinate = 0;
|
||||||
}
|
}
|
||||||
else if (theContentCorner === "BOTTOMRIGHT") {
|
else if (theContentCorner === "BOTTOMRIGHT") {
|
||||||
expectedXCoordinate = 1 - viewer.viewport.getBounds().width;
|
expectedXCoordinate = 1 - viewer.viewport.getBounds().width;
|
||||||
expecteYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height;
|
expectedYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height;
|
||||||
}
|
}
|
||||||
else if (theContentCorner === "BOTTOMLEFT") {
|
else if (theContentCorner === "BOTTOMLEFT") {
|
||||||
expectedXCoordinate = 0;
|
expectedXCoordinate = 0;
|
||||||
expecteYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height;
|
expectedYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height;
|
||||||
}
|
}
|
||||||
if (viewer.viewport.getBounds().width < 1) {
|
if (viewer.viewport.getBounds().width < 1) {
|
||||||
Util.assessNumericValue(expectedXCoordinate, viewer.viewport.getBounds().x, 0.04, ' Viewer at ' + theContentCorner + ', x coord');
|
Util.assessNumericValue(expectedXCoordinate, viewer.viewport.getBounds().x, 0.04, ' Viewer at ' + theContentCorner + ', x coord');
|
||||||
}
|
}
|
||||||
if (viewer.viewport.getBounds().height < 1 / viewer.source.aspectRatio) {
|
if (viewer.viewport.getBounds().height < 1 / viewer.source.aspectRatio) {
|
||||||
Util.assessNumericValue(expecteYCoordinate, viewer.viewport.getBounds().y, 0.04, ' Viewer at ' + theContentCorner + ', y coord');
|
Util.assessNumericValue(expectedYCoordinate, viewer.viewport.getBounds().y, 0.04, ' Viewer at ' + theContentCorner + ', y coord');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user