From cf277d0dcaa4b8cb89eea5eb70036af9a64aff41 Mon Sep 17 00:00:00 2001 From: Megan Riel-Mehan Date: Tue, 28 Nov 2023 12:25:40 -0800 Subject: [PATCH] Fix/color change bug (#346) * bug fix branch * remove log * successfully change colors * remove log * fix typing * restore initial agent colors array * clean up, comments and tests * more confident comment * edits to comments * Update src/visGeometry/index.ts Co-authored-by: Peyton Lee * clarify comment * Update src/visGeometry/index.ts Co-authored-by: Peyton Lee --------- Co-authored-by: Joe Heffernan Co-authored-by: Peyton Lee --- examples/ColorPicker.tsx | 1 - src/test/VisGeometry.test.ts | 125 ++++++++++++++++++++++++++ src/viewport/index.tsx | 28 ++++-- src/visGeometry/index.ts | 168 ++++++++++++++++++++++++----------- 4 files changed, 262 insertions(+), 60 deletions(-) create mode 100644 src/test/VisGeometry.test.ts diff --git a/examples/ColorPicker.tsx b/examples/ColorPicker.tsx index a2814b9d..64ed42ea 100644 --- a/examples/ColorPicker.tsx +++ b/examples/ColorPicker.tsx @@ -110,7 +110,6 @@ const ColorPicker = ({ type="text" placeholder="add Hex Color" onChange={(event) => { - console.log(event.target.value) setColorToAppend(event.target.value)}} >