Skip to content

Commit

Permalink
Slight mod
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 7, 2024
1 parent 0c8bff4 commit 8e94c66
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 179 deletions.
2 changes: 1 addition & 1 deletion lib/src/components/ImportForm/ImportFormExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ImportFormExamples = observer(function ({
model={model}
onClick={() =>
load(model, {
uri: 'https://ihh.github.io/abrowse/build/pfam-cov2.stock',
uri: 'https://jbrowse.org/genomes/multiple_sequence_alignments/pfam-cov2.stock',
locationType: 'UriLocation',
})
}
Expand Down
8 changes: 4 additions & 4 deletions lib/src/components/Minimap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { MsaViewModel } from '../model'
const Minimap = observer(function ({ model }: { model: MsaViewModel }) {
const { scrollX, msaAreaWidth: W, colWidth, numColumns } = model
const unit = W / numColumns
const start = -scrollX / colWidth
const end = -scrollX / colWidth + W / colWidth
const s = start * unit
const e = end * unit
const left = -scrollX
const right = left + W
const s = (left / colWidth) * unit
const e = (right / colWidth) * unit
const HEIGHT = 56
const TOP = 10
const fill = 'rgba(66, 119, 127, 0.3)'
Expand Down
10 changes: 0 additions & 10 deletions lib/src/components/Ruler/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion lib/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ const model = types
* #getter
*/
get numColumns() {
return ((this.MSA?.getWidth() || 0) - this.blanks.length)
return (this.MSA?.getWidth() || 0) - this.blanks.length
},
/**
* #getter
Expand Down
Loading

0 comments on commit 8e94c66

Please sign in to comment.