mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Use correct method for imageToWindowCoordinates
This commit is contained in:
parent
57e97019d9
commit
446382f5a1
@ -423,8 +423,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
* @returns {OpenSeadragon.Point} The TiledImage's content size, in window coordinates.
|
* @returns {OpenSeadragon.Point} The TiledImage's content size, in window coordinates.
|
||||||
*/
|
*/
|
||||||
getSizeInWindowCoordinates: function() {
|
getSizeInWindowCoordinates: function() {
|
||||||
var topLeft = this.viewport.imageToWindowCoordinates(new $.Point(0, 0));
|
var topLeft = this.imageToWindowCoordinates(new $.Point(0, 0));
|
||||||
var bottomRight = this.viewport.imageToWindowCoordinates(this.getContentSize());
|
var bottomRight = this.imageToWindowCoordinates(this.getContentSize());
|
||||||
return new $.Point(bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);
|
return new $.Point(bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user