-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angle Graph bug fixes and refactoring #1666
base: main
Are you sure you want to change the base?
Changes from 1 commit
5442dd2
9f10c0a
69a54d0
54f9d74
4350c0f
7052785
90aabd2
61fa24f
86fef16
f8414f8
1a10f10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1772,7 +1772,7 @@ const GraphUtils = { | |
|
||
// Find the angle in degrees between two or three points | ||
// This function is deprecated as it has several issues calculating | ||
// correctly when dealing with reflexive angles or the position of point2 | ||
// correctly when dealing with reflex angles or the position of point2 | ||
// (LEMS-2202) Remove this function while removing the Legacy Interactive Graph. | ||
findAngleDeprecated: function ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can add a comment to LEMS-2202 to mention deleting this function once we strip out the Legacy Graph. First, I need to confirm if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Praise: Thanks for making it clear this function should not be used in the future! Question: Are angles measured incorrectly where this is still used? |
||
point1: Coord, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit since this seems to be the pattern in the file:
could the logic for the checkboxes be extracted into their own methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooo good callout! They definitely could be separated out, but I think this PR is probably already large and long-lived enough as it is.😅
That sounds like a good clean up ticket for Interactive Graph's backlog however! It seems like this is the existing design pattern in this file, and we should probably update all of the checkbox logic together in order to maintain consistency.