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
Separate out PileupDisplay functionality shared with SyntenyDisplay into a Mixin #3781
Conversation
…ny to inherit separately with their own implementations
Codecov Report
@@ Coverage Diff @@
## lgv-synteny-color #3781 +/- ##
======================================================
+ Coverage 0 64.06% +64.06%
======================================================
Files 0 989 +989
Lines 0 29781 +29781
Branches 0 7130 +7130
======================================================
+ Hits 0 19080 +19080
- Misses 0 10536 +10536
- Partials 0 165 +165
... and 979 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
472f8e3
to
0ac6233
Compare
@@ -22,7 +22,7 @@ import { makeImageData } from './makeImageData' | |||
import { readConfObject } from '@jbrowse/core/configuration' | |||
|
|||
export interface RenderArgsDeserialized extends BoxRenderArgsDeserialized { | |||
colorBy?: { type: string; tag?: string; extra?: any } | |||
colorBy?: { type: string; tag?: string; extra?: {} } |
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.
can extra be typed with Record<string,unknown> or ExtraColorBy or something?
|
||
function ColorByCustomDlg(props: { | ||
model: { | ||
colorBy: any | ||
colorBy: IColorByModel |
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.
is it possibly undefined e.g. colorBy?: IColorByModel?
looks good to me, looks like this merges into the other PR currently. can address comments there perhaps, they are typescript nits |
…nto a Mixin (#3781) * separating out shared functionality into a mixin for pileup and synteny to inherit separately with their own implementations * fixing lint with strict typing * mv interface to shared file and add maybe type back * revert change to package.json
Removes "nonsense" operations from the synteny view by separating shared functionality between it and pileup into a mixin they both implement separately.