From 910eaf6da6c6a973b13af57337c0004a3c44b69f Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 31 Jul 2017 17:43:10 -0400 Subject: [PATCH] changed indexOfImage to colorIndex --- src/drawer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drawer.js b/src/drawer.js index a01d74b9..c904abbb 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -490,13 +490,13 @@ $.Drawer.prototype = { return; } - var indexOfImage = this.viewer.world.getIndexOfItem(tiledImage) % this.debugGridColor.length; + var colorIndex = this.viewer.world.getIndexOfItem(tiledImage) % this.debugGridColor.length; var context = this.context; context.save(); context.lineWidth = 2 * $.pixelDensityRatio; context.font = 'small-caps bold ' + (13 * $.pixelDensityRatio) + 'px arial'; - context.strokeStyle = this.debugGridColor[indexOfImage]; - context.fillStyle = this.debugGridColor[indexOfImage]; + context.strokeStyle = this.debugGridColor[colorIndex]; + context.fillStyle = this.debugGridColor[colorIndex]; if ( this.viewport.degrees !== 0 ) { this._offsetForRotation({degrees: this.viewport.degrees});