mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Readd blank lines.
This commit is contained in:
parent
bd62d56a37
commit
fafb7f8db6
@ -131,6 +131,7 @@
|
|||||||
|
|
||||||
/** @lends OpenSeadragon.Overlay.prototype */
|
/** @lends OpenSeadragon.Overlay.prototype */
|
||||||
$.Overlay.prototype = {
|
$.Overlay.prototype = {
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_init: function(options) {
|
_init: function(options) {
|
||||||
this.location = options.location;
|
this.location = options.location;
|
||||||
@ -156,6 +157,7 @@
|
|||||||
this.placement = $.Placement.TOP_LEFT;
|
this.placement = $.Placement.TOP_LEFT;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal function to adjust the position of an overlay
|
* Internal function to adjust the position of an overlay
|
||||||
* depending on it size and placement.
|
* depending on it size and placement.
|
||||||
@ -179,6 +181,7 @@
|
|||||||
position.y -= size.y;
|
position.y -= size.y;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
@ -222,6 +225,7 @@
|
|||||||
style[transformProp] = "";
|
style[transformProp] = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @function
|
* @function
|
||||||
* @param {Element} container
|
* @param {Element} container
|
||||||
@ -279,6 +283,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_getOverlayPositionAndSize: function(viewport) {
|
_getOverlayPositionAndSize: function(viewport) {
|
||||||
var position = viewport.pixelFromPoint(this.location, true);
|
var position = viewport.pixelFromPoint(this.location, true);
|
||||||
@ -307,6 +312,7 @@
|
|||||||
rotate: rotate
|
rotate: rotate
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_getSizeInPixels: function(viewport) {
|
_getSizeInPixels: function(viewport) {
|
||||||
var width = this.size.x;
|
var width = this.size.x;
|
||||||
@ -333,11 +339,13 @@
|
|||||||
}
|
}
|
||||||
return new $.Point(width, height);
|
return new $.Point(width, height);
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_getBoundingBox: function(rect, degrees) {
|
_getBoundingBox: function(rect, degrees) {
|
||||||
var refPoint = this._getPlacementPoint(rect);
|
var refPoint = this._getPlacementPoint(rect);
|
||||||
return rect.rotate(degrees, refPoint).getBoundingBox();
|
return rect.rotate(degrees, refPoint).getBoundingBox();
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_getPlacementPoint: function(rect) {
|
_getPlacementPoint: function(rect) {
|
||||||
var result = new $.Point(rect.x, rect.y);
|
var result = new $.Point(rect.x, rect.y);
|
||||||
@ -356,6 +364,7 @@
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
_getTransformOrigin: function() {
|
_getTransformOrigin: function() {
|
||||||
var result = "";
|
var result = "";
|
||||||
@ -375,6 +384,7 @@
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes the overlay settings.
|
* Changes the overlay settings.
|
||||||
* @function
|
* @function
|
||||||
@ -399,6 +409,7 @@
|
|||||||
rotationMode: options.rotationMode || this.rotationMode
|
rotationMode: options.rotationMode || this.rotationMode
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current bounds of the overlay in viewport coordinates
|
* Returns the current bounds of the overlay in viewport coordinates
|
||||||
* @function
|
* @function
|
||||||
|
Loading…
Reference in New Issue
Block a user