From a93156ec45655618115a167ee0353bb239ded445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 28 Feb 2011 20:24:15 +0100 Subject: [PATCH] Break long lines at 80 chars. --- src/item/Raster.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index aeddd814..b0edde76 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -241,7 +241,8 @@ Raster = Item.extend({ } else if (object.width) { bounds = new Rectangle(object); } else if (object.x) { - bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1); + bounds = new Rectangle(object.x - 0.5, object.y - 0.5, + 1, 1); } var canvas = CanvasProvider.getCanvas(bounds.size); @@ -268,7 +269,8 @@ Raster = Item.extend({ var sampleCanvas = CanvasProvider.getCanvas(size); var ctx = sampleCanvas.getContext('2d'); ctx.drawImage(image, 0, 0, size.width, size.height); - var pixels = ctx.getImageData(0.5, 0.5, size.width, size.height).data; + var pixels = ctx.getImageData(0.5, 0.5, + size.width, size.height).data; var color = getAverageColor(pixels); CanvasProvider.returnCanvas(sampleCanvas); if (image instanceof HTMLCanvasElement)