webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit 034fb507ac2b54cebe4e7fe9663c393b4104aa82
parent 199e9a30ad98c21a193b2364f5468218174c42ca
Author: Sean Lynch <seanl@literati.org>
Date:   Wed,  7 Sep 2011 22:10:01 -0700

More debugging

Diffstat:
Mwebdial.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -20,6 +20,7 @@ function WebDial(canvas) { console.debug("Drawing", points.length, "points"); ctx.beginPath(); var lastPoint = points[points.length-1]; + console.debug(lon2x(lastPoint[0]), lat2y(lastPoint[1])); ctx.moveTo(lon2x(lastPoint[0]), lat2y(lastPoint[1])); $.each(points, function(j, point) { ctx.lineTo(lon2x(point[0]), lat2y(point[1]));