From 419ad415ed7b333b731102c73ef61bda1d7782cd Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 30 Apr 2023 18:34:41 -0500 Subject: [PATCH] Let's try mozilla's fixedCharAt function --- commands/drawDesign.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index d8d7417..36b1db0 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -262,14 +262,14 @@ function design5(input) { if (dist > radius - 1 && dist < radius + 1) { //&& dist > radius - 1 lineHasInput = true; - outputLine += "​" + input.fixedCharAt(charIterate(input)); //zero-width space + outputLine += "​" + fixedCharAt(input, charIterate(input)); //zero-width space } else { outputLine += " "; } } } else { lineHasInput = true; - outputLine += input.fixedCharAt(charIterate(input)) + space + input + space + spaceOffset + input.fixedCharAt(charIterate(input)); + outputLine += fixedCharAt(input, charIterate(input)) + space + input + space + spaceOffset + fixedCharAt(input, charIterate(input)); } //console.log(i, j, outputLine);