-
Notifications
You must be signed in to change notification settings - Fork 33
Grid JS to TS conversion #327
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #327 +/- ##
=========================================
+ Coverage 0 46.08% +46.08%
=========================================
Files 0 47 +47
Lines 0 7926 +7926
Branches 0 2121 +2121
=========================================
+ Hits 0 3653 +3653
- Misses 0 4026 +4026
- Partials 0 247 +247
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Still need to do many other files and test it. GridRenderer still in progress.
Haven't tested anything
I don't know why it fails with npm start but doesn't show the error in VS Code. It seems like it should be fine, but it's not tracking the condition through multiple ifs/variables? Will check with Matt tomorrow.
Also made sure the x/y properties of EditOperation are just deprecated so we don't break existing plugins
It wasn't doing the same if check as above, so it was doing a context.restore without a previous context.save and screwing everything up. I don't know why unit tests complain about `column` or `row` possibly being null though, since VS Code doesn't complain and `isCursorVisible` already implies column/row are not null
- Moved delete from EditableGridModel to IrisGridModel. It deletes the ranges and shifts, which is functionality not accessible at all from Grid right now, so doesn't make sense to be in EditableGridModel. Will add a method to EditableGridModel when necessary, with a "shift" parameter as well to specify how to shift the data - Cleaned up some other docs
Some of the events we listen to are not wrapped in SyntheticEvent. Create these types to be the union of the native event and synthetic event, since it doesn't really matter which one we get - the properties we read are common to both.
- Remove extraneous assertions.ts file - Add try/catch around possible exception
Rebased, just need that +1 again |
ExpandableGridModel
,EditableGridModel