Clean up $.pixelDensityRatio comments

This commit is contained in:
Wesley Fok 2015-01-29 15:14:41 -05:00
parent 3402d33088
commit a23da44b8f

View File

@ -817,10 +817,9 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
}()); }());
/** /**
* @private * 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.
* @inner * @member {Number} pixelDensityRatio
* @function * @memberof OpenSeadragon
* @returns {Number} The device's pixel density ratio, or null if canvas isn't supported by the browser.
*/ */
$.pixelDensityRatio = (function () { $.pixelDensityRatio = (function () {
if ( $.supportsCanvas ) { if ( $.supportsCanvas ) {
@ -832,12 +831,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
context.oBackingStorePixelRatio || context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1; context.backingStorePixelRatio || 1;
return devicePixelRatio / backingStoreRatio; return devicePixelRatio / backingStoreRatio;
// var viewportSize = this.viewport.getContainerSize();
// return {
// x: viewportSize.x * canvasDensityRatio,
// y: viewportSize.y * canvasDensityRatio,
// ratio: canvasDensityRatio
// };
} else { } else {
return 1; return 1;
} }