You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing this track, it seems to work pretty well! I have run into a couple issues, which I'm documenting here in case they point to some issue.
In one test setup of my single-page web application, its viewconf has four tracks. The second track is a horizontal-multivec track and the fourth track is a horizontal-transcripts track, via the higlass-transcripts plugin.
Within the web application, I have the transcripts track object subscribe to the trackDimensionsModified event to get the new transcript track height whenever switching between "collapsed" and "all-transcripts-visible" modes:
The updateViewportDimensions() generates a viewconf with correct dimensions for all tracks. But the multivec track has the wrong (old) height. It does not redraw itself with the correct (new) height, until I manually pan or zoom the parent HiGlass view.
As a workaround, in order to get the multivec track to redraw, I called scheduleRerender() on that track.
In this modified call, the chromatinStateTrackObj variable refers to the multivec track whose height needs to be adjusted:
Using scheduleRerender() seems to "refresh" the multivec track, so that it renders with the height value specified in the parent viewconf.
I'm not sure if this is a bug, or if I am not using the plugin correctly. I can provide a link to the development site separately (via Slack etc.) if it is helpful to see the issue firsthand.
The text was updated successfully, but these errors were encountered:
Testing this track, it seems to work pretty well! I have run into a couple issues, which I'm documenting here in case they point to some issue.
In one test setup of my single-page web application, its viewconf has four tracks. The second track is a
horizontal-multivec
track and the fourth track is ahorizontal-transcripts
track, via thehiglass-transcripts
plugin.Within the web application, I have the transcripts track object subscribe to the
trackDimensionsModified
event to get the new transcript track height whenever switching between "collapsed" and "all-transcripts-visible" modes:The
updateViewportDimensions()
generates a viewconf with correct dimensions for all tracks. But the multivec track has the wrong (old) height. It does not redraw itself with the correct (new) height, until I manually pan or zoom the parent HiGlass view.As a workaround, in order to get the multivec track to redraw, I called
scheduleRerender()
on that track.In this modified call, the
chromatinStateTrackObj
variable refers to the multivec track whose height needs to be adjusted:Using
scheduleRerender()
seems to "refresh" the multivec track, so that it renders with the height value specified in the parent viewconf.I'm not sure if this is a bug, or if I am not using the plugin correctly. I can provide a link to the development site separately (via Slack etc.) if it is helpful to see the issue firsthand.
The text was updated successfully, but these errors were encountered: