From 6c3b24498f664fb0c055085e4ec48a72745554c7 Mon Sep 17 00:00:00 2001 From: nanli-emory Date: Fri, 5 Apr 2024 20:00:25 -0400 Subject: [PATCH] change rotation in radians --- common/DrawHelper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/DrawHelper.js b/common/DrawHelper.js index 977a93a59..5e0d608ae 100644 --- a/common/DrawHelper.js +++ b/common/DrawHelper.js @@ -100,6 +100,8 @@ caDrawHelper.prototype.circle = function(ctx, point, radius, isPoint=true){ // return points and path return path; } + +// rotation in radians caDrawHelper.prototype.ellipse = function(ctx, point, radius, rotation){ const path = new Path(); path.ellipse( @@ -107,7 +109,7 @@ caDrawHelper.prototype.ellipse = function(ctx, point, radius, rotation){ point[1], radius[0], radius[1], - rotation * Math.PI, + rotation, 0, 2 * Math.PI );