From 7740accfafa98b6e3f469f19acba0ea57712b7e3 Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Sun, 4 Aug 2024 15:29:12 -0700 Subject: [PATCH] Update openseadragon.js Fix jsdoc comments for OpenSeadragon.getCurrentPixelDensityRatio --- src/openseadragon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index ce95b5a5..64595c28 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1069,8 +1069,9 @@ function OpenSeadragon( options ){ /** * A ratio comparing the device screen's pixel density to the canvas's backing store pixel density, * clamped to a minimum of 1. Defaults to 1 if canvas isn't supported by the browser. - * @member {Number} pixelDensityRatio + * @function getCurrentPixelDensityRatio * @memberof OpenSeadragon + * @returns {Number} */ $.getCurrentPixelDensityRatio = function() { if ( $.supportsCanvas ) { @@ -1088,6 +1089,8 @@ function OpenSeadragon( options ){ }; /** + * A ratio comparing the device screen's pixel density to the canvas's backing store pixel density, + * clamped to a minimum of 1. Defaults to 1 if canvas isn't supported by the browser. * @member {Number} pixelDensityRatio * @memberof OpenSeadragon */