From ae23bb5e561dabd75ef9c2478c27ff8724242dab Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Thu, 11 Jul 2019 10:23:15 -0400 Subject: [PATCH] add jsdoc for useNearest --- src/Drawable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Drawable.js b/src/Drawable.js index d901ef2..af8acdd 100644 --- a/src/Drawable.js +++ b/src/Drawable.js @@ -420,6 +420,7 @@ class Drawable { /** * Should the drawable use NEAREST NEIGHBOR or LINEAR INTERPOLATION mode * @param {?Array} scale Optionally, the screen-space scale of the drawable. + * @return {boolean} True if the drawable should use nearest-neighbor interpolation. */ useNearest (scale = this.scale) { // Raster skins (bitmaps) should always prefer nearest neighbor