From 95068841584389c9b178a94d8785b9154d924b60 Mon Sep 17 00:00:00 2001 From: wong2 Date: Sun, 18 Dec 2011 18:01:24 +0800 Subject: [PATCH] tab to 4 spaces --- drawline.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drawline.js b/drawline.js index 57cf791..52131bc 100644 --- a/drawline.js +++ b/drawline.js @@ -1,23 +1,23 @@ var DrawLine = function() { - var context, offsetLeft, offsetTop; + var context, offsetLeft, offsetTop; - function _drawCircle(mouseX, mouseY) { + function _drawCircle(mouseX, mouseY) { var x = mouseX - offsetLeft, y = mouseY - offsetTop; - context.beginPath(); - context.arc(x, y, 15, 0, Math.PI * 2); - context.closePath(); - context.fill(); - } - - function _setLineStyle() { - context.strokeStyle = "#df4b26"; - context.lineJoin = "round"; - context.lineWidth = 20; - } - - return { + context.beginPath(); + context.arc(x, y, 15, 0, Math.PI * 2); + context.closePath(); + context.fill(); + } + + function _setLineStyle() { + context.strokeStyle = "#df4b26"; + context.lineJoin = "round"; + context.lineWidth = 20; + } + + return { init: function(canvas) { var isPainting = false;