bhofmei / jbplugin-screenshot Goto Github PK
View Code? Open in Web Editor NEWJBrowse plugin that adds button which uses phantomJS to take browser screenshot
License: Other
JBrowse plugin that adds button which uses phantomJS to take browser screenshot
License: Other
Hi there!
I was experimenting with PDF rendering recently and I noticed for example that oftentimes the tracklist has a weird gap around it
For example with this URL there is a gap between the browser and the tracklist:
But with this URL the gap goes away:
I was considering the possibility that this could be an issue with jbrowse core, but given that changing the rendering settings alleviates the issue somewhat, do you think this plugin would benefit from altering the settings passed to phantomjs?
Hi,
Great work so far; I installed it in a staging server and it works right out of the box. Have you considered allowing alternate phantomjs providers? The folks at WormBase are concerned that on a busy day (say, right before a conference), the 500 free screenshots would be used up and then users would be greeted with an embarrassing (for us) message that "you used all all of your free screenshots" message. I see that there are a few web services-type projects listed in the phantomjs related projects page: http://phantomjs.org/related-projects.html Perhaps one of those could be configured to be a drop in replacement, and the screenshot plugin could just take a url via configuration for where to go.
Not that I'm necessarily suggesting that you do this now or ever, but if it's easy you could (in your copious free time). But if you don't, I may do it sometime in the next few months (with my copious free time :-)
Thanks!
Did a plain install with a git clone as instructed. jbrowse.conf installation broke the browser (no tracks), jbrowse_conf.json produced the Screen Shot button, which does nothing, but here's the error message in Chrome console:
Uncaught Error: Tried to register widget with id==screenshot-dialog-pane-top-left but that id is already registered
at Object.add (dojo.js:297)
at Object.create (dojo.js:303)
at Object.f (dojo.js:122)
at Object.create (dojo.js:283)
at Object.postscript (dojo.js:302)
at new <anonymous> (dojo.js:124)
at Object.show (ScreenShotDialog.js:107)
at Object.showScreenShotDialog [as onClick] (main.js:1860)
at Object._onClick (dojo.js:584)
at Object.f (dojo.js:122)
And here's the similar error message in the Firefox console:
Error: Tried to register widget with id==screenshot-dialog-pane-top-left but that id is already registered dojo.js:297:198
.cache["dijit/registry"]/</c.add http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:297:198
.cache["dijit/_WidgetBase"]/</<.create http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:303:185
f http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:122:218
.cache["dijit/layout/ContentPane"]/</<.create http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:283:278
.cache["dijit/_WidgetBase"]/</<.postscript http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:302:202
n/< http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:124:273
.show http://bartontools.dpb.carnegiescience.edu/jbrowse/plugins/ScreenShotPlugin/js/View/Dialog/ScreenShotDialog.js:107:31
showScreenShotDialog http://bartontools.dpb.carnegiescience.edu/jbrowse/plugins/ScreenShotPlugin/js/main.js:1856:17
.cache["dijit/form/_ButtonMixin"]/</<._onClick http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:584:491
f http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:122:218
.cache["dijit/form/Button"]/</<._onClick http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:583:71
.cache["dojo/_base/lang"]/</b.hitch/< http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:140:465
.cache["dijit/a11yclick"]/</</e< http://bartontools.dpb.carnegiescience.edu/jbrowse/src/dojo/dojo.js:320:161
I'm trying to screenshot a JBrowse instance which is showing a dozen or so SNPCoverage tracks. Unfortunately, the screenshot is returned with "Loading" showing in several blocks/tracks to to the time required for that plugin to compute and render the info. Increasing "Extra render time" doesn't seem to help.
Is there a workaround?
Hi Brigette,
What would be involved in removing the track labels? I saw in the code that you had at least some of the infrastructure that to do it. Is there something on the JBrowse side that is holding it up?
Thanks,
Scott
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.