From 9fc82a8fc33fb7e2b333d865dc67dc1ff87d87ac Mon Sep 17 00:00:00 2001 From: Katie Broida Date: Wed, 13 Mar 2019 16:57:01 -0400 Subject: [PATCH] Tweak scalingVector to make dots appear to be more circular instead of oval --- src/PenSkin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PenSkin.js b/src/PenSkin.js index fb0b0d999..dc1597192 100644 --- a/src/PenSkin.js +++ b/src/PenSkin.js @@ -371,8 +371,10 @@ class PenSkin extends Skin { translationVector[1] = avgY + (alias / 4); const scalingVector = __modelScalingVector; - scalingVector[0] = diameter + alias; - scalingVector[1] = length + diameter - (alias / 2); + // Dots tend to be ovals that are longer on the y-axis, so we use a smaller alias + // for the y value than for the x value to make dots more circular. + scalingVector[0] = diameter + (alias / 2); + scalingVector[1] = length + diameter - (alias / 6); const radius = diameter / 2; const yScalar = (0.50001 - (radius / (length + diameter)));