Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nishasy committed Aug 5, 2024
1 parent 9bbe9ea commit 7708236
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export const StatefulMafsGraph = React.forwardRef<
);
}, [dispatch, xMinRange, xMaxRange, yMinRange, yMaxRange]);

// Update the graph whenever any of the following values changes.
// This is necessary to keep the graph previews in sync with the updated
// graph settings within the interative graph editor.
const numSegments = graph.type === "segment" ? graph.numSegments : null;
const numPoints = graph.type === "point" ? graph.numPoints : null;
const numSides = graph.type === "polygon" ? graph.numSides : null;
Expand Down

0 comments on commit 7708236

Please sign in to comment.