Skip to content

Commit

Permalink
Intermediate
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 1, 2021
1 parent 31d311e commit 6a7c087
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ function instantiateTrackLayoutFeatures(views: ReducedLinearGenomeView[]) {
})
})
return views
// return views.map(view => {
// console.log(view)
// // view.tracks = []
// console.log(view.tracks)
// return stateModelFactory(pluginManager).create(view)
// })
}

function* generateLayoutMatches(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ export const BaseLinearDisplay = types
return layoutMaps
},

get layoutFeatures() {
const layoutMaps = new Map<string, Map<string, LayoutRecord>>()
for (const block of self.blockState.values()) {
if (block && block.layout && block.layout.rectangles) {
layoutMaps.set(block.key, block.layout.getRectangles())
}
}
return layoutMaps
},

getFeatureOverlapping(blockKey: string, x: number, y: number) {
return self.blockState.get(blockKey)?.layout?.getByCoord(x, y)
},
Expand Down

0 comments on commit 6a7c087

Please sign in to comment.