-
Notifications
You must be signed in to change notification settings - Fork 31
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
Convert GridMetricCalculator, GridRange, GridUtils to TypeScript #302
Conversation
mofojed
commented
Nov 18, 2021
•
edited
Loading
edited
- Convert GridMetricCalculator, GridUtils, GridRange to TypeScript
- Added JSDocs to each method
- Partial Convert all js in grid to ts #21
All tests pass, did a quick smoke test and things work as expected
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.
Looks good. Glad this is moving forward.
- Correct 'eg.' to 'e.g.' - Renamed Index to VisibleIndex - Renamed itemXs to itemCoordinates to be a little more accurate
Missed a few comments the first time
- Now that it throws if we're trying to retrieve a value that's not in the map, needed a couple more fixes. - Add the floating rows/columns heights to the height/column maps right away, before we calculate all the positions - Check if columnCount or rowCount is 0 before getting some values
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.
Change mapGet
to be called something like getOrThrow
or mapGetOrThrow
to make it clear to anybody in the future that it can throw
Remove default value if you want
…ipt (deephaven#302)" This reverts commit 3b46b7a.
…phaven#302) - Convert part of grid to TypeScript - Add some JSDocs