From a23da44b8f8682cfdbfe33a02266fd4392e34517 Mon Sep 17 00:00:00 2001 From: Wesley Fok Date: Thu, 29 Jan 2015 15:14:41 -0500 Subject: [PATCH] Clean up $.pixelDensityRatio comments --- src/openseadragon.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 44a02ef6..f029a7c8 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -817,10 +817,9 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ }()); /** - * @private - * @inner - * @function - * @returns {Number} The device's pixel density ratio, or null if canvas isn't supported by the browser. + * A ratio comparing the device screen's pixel density to the canvas's backing store pixel density. Defaults to 1 if canvas isn't supported by the browser. + * @member {Number} pixelDensityRatio + * @memberof OpenSeadragon */ $.pixelDensityRatio = (function () { if ( $.supportsCanvas ) { @@ -832,12 +831,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){ context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1; return devicePixelRatio / backingStoreRatio; - // var viewportSize = this.viewport.getContainerSize(); - // return { - // x: viewportSize.x * canvasDensityRatio, - // y: viewportSize.y * canvasDensityRatio, - // ratio: canvasDensityRatio - // }; } else { return 1; }