BoxRendererType re-exports #2042
-
Hi JBrowse team, Would it be possible to re-export in the plugin manager all the exports in files like BoxRendererType.ts in a future release? Currently, only the BoxRendererType class itself is exported. The reason I ask is because I am trying to insert my own layout into the class, and it seems that to do this correctly I must subclass BoxRendererType, LayoutSession, and BaseLayout, and override certain methods. Right now I can subclass BoxRendererType and BaseLayout because these are re-exported, but I must copy and paste LayoutSession in order to subclass it. Maybe this is a fairly minor point, but I can't see any downside to exposing all the exports, and it may make it easier to extend the capabilites of JBrowse for plugin authors. Edit: Also, if you think there is a simpler way to solve my issue, please do let me know! Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @tchannagiri, Thanks for letting us know what you're using, we're trying to figure out the best ways to make our plugins easier for others to use. How are you accessing the BoxRendererType? If you're importing it from
You mentioned the plugin manager, though, so if you're accessing BoxRendererType differently, let me know and I can try to provide more guidance. |
Beta Was this translation helpful? Give feedback.
Hi @tchannagiri,
Thanks for letting us know what you're using, we're trying to figure out the best ways to make our plugins easier for others to use. How are you accessing the BoxRendererType? If you're importing it from
@jbrowse/core
, then you can do the same thing to get the LayoutSession. It would look something like this:You mentioned the plugin manager, though, so if you're accessing BoxRendererType differently, let me know and I can try to provide more guidance.