From ec4b24aa315a0d9752f58312617a222aacc9a16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Mon, 4 Jan 2016 09:09:21 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E5=B8=A6=E5=9C=86=E8=A7=92=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 193 +++++++++++++++++++++++++++---------------------------- 1 file changed, 93 insertions(+), 100 deletions(-) diff --git a/index.js b/index.js index f880604..74e309d 100644 --- a/index.js +++ b/index.js @@ -112,106 +112,99 @@ y:15, data:map_data, draw:function(context){ - context.strokeStyle='#f00'; - context.beginPath(); - context.moveTo(15,15); - context.lineTo(15,15-this.size/2); - context.stroke(); - context.closePath(); - context.beginPath(); - context.moveTo(15,15); - context.lineTo(15,15+this.size/2); - context.stroke(); - context.closePath(); - // var x_length = this.data[0].length; - // var y_length = this.data.length; - // for(var i=0; i