mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-04 06:13:31 +03:00
Add comment
This commit is contained in:
parent
f8503bd6ac
commit
ff6e604b94
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ $.Drawer.prototype = /** @lends OpenSeadragon.Drawer.prototype */{
|
|||
/**
|
||||
* Translates from OpenSeadragon viewer rectangle to drawer rectangle.
|
||||
* @param {OpenSeadragon.Rect} rectangle - The rectangle in viewport coordinate system.
|
||||
* @return {OpenSeadragon.Rect} Rectangle in drawer coordinate system.
|
||||
*/
|
||||
viewportToDrawerRectangle: function(rectangle) {
|
||||
var topLeft = this.viewport.pixelFromPoint(rectangle.getTopLeft(), true);
|
||||
|
|
Loading…
Add table
Reference in a new issue