mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06:10 +03:00
Clean up $.pixelDensityRatio comments
This commit is contained in:
parent
3402d33088
commit
a23da44b8f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user