mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +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
|
||||
* @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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user