From d333c233ee1ed40ac7f4f6c972a60420eef37564 Mon Sep 17 00:00:00 2001 From: Alexandre Gerlic Date: Mon, 26 Nov 2012 15:25:28 +0100 Subject: [PATCH] replace fillRect by arc --- src/jSignature.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jSignature.js b/src/jSignature.js index 3709d4a..a1675f1 100644 --- a/src/jSignature.js +++ b/src/jSignature.js @@ -453,7 +453,10 @@ function DataEngine(storageObject, context, startStrokeFn, addToStrokeFn, endStr var basicDot = function(ctx, x, y, size){ var fillStyle = ctx.fillStyle ctx.fillStyle = ctx.strokeStyle - ctx.fillRect(x + size / -2 , y + size / -2, size, size) + ctx.beginPath() + ctx.arc(x, y, size / 2, 0, Math.PI*2) + ctx.closePath() + ctx.fill() ctx.fillStyle = fillStyle } , basicLine = function(ctx, startx, starty, endx, endy){