Comments (8)
The code is we use is:
<div class='viewer_3Dmoljs' data-href='/static/data/FILE.mol2' data-type='mol2' data-backgroundcolor='0xffffff' data-style='stick'></div>
and
<div class='viewer_3Dmoljs' data-href='/static/data/FILE.sdf' data-type='sdf' data-backgroundcolor='0xffffff' data-style='stick'></div>
from 3dmol.js.
I can't reproduce this. Are you using the latest and greatest 3Dmol.js?
Showing hydrogens is the default for everything but pdb files (cause I don't like it for pdb files). Hiding hydrogens wasn't working for sdf and mol2s though I just committed a fix.
from 3dmol.js.
We're using the No-jQuery verison of 3dMol, because it's conflicting with jQuery if we import it ourselves separately.
from 3dmol.js.
Testing it with the latest build of 3Dmol.js from http://3dmol.csb.pitt.edu/build/3Dmol.js
fixes the issue, but it breaks jQuery otherwise due to namespace conflicts.
from 3dmol.js.
Why not use the nojquery version? Are you saying that the most recent nojquery version doesn't work but the jquery included one does?
from 3dmol.js.
Switching from the CDN noquery version the hydrogens show.
from 3dmol.js.
That fixed it! We changed from
<script src="http://cdn.jsdelivr.net/3dmol.js/latest/3Dmol-nojquery-min.js"></script>
to
<script src="http://3Dmol.csb.pitt.edu/build/3Dmol-nojquery.js"></script>
for our CDN and that fixed everything.
from 3dmol.js.
Linking to 3dmol.csb.pitt.edu gives the the very latest version. The jsdeliver version is only updated when I tag a release. My recommendation would be to link to the 3dmol version for now as you develop the site. That way if there are any bug fixes or features you need you can pick them up right away. Once your site is in a happy place, I can tag a release, and you can switch to the more stable jsdeliver, CDN hosted version.
from 3dmol.js.
Related Issues (20)
- Visualizing multiple protein structures in the same viewer HOT 3
- Not showing Hydrogen atoms HOT 4
- Is it possible to have post-translational modifications (PTMs) features in 3Dmol? HOT 1
- Discrepancy in Atom Rendering Between 3Dmol.js and VESTA for Al1Cd2_H.cif File HOT 4
- .render() is not showing updated representation of models HOT 2
- [BUG] defaultcolors not applied when using addModelsAsFrames HOT 1
- py3Dmol is not working [BUG] HOT 4
- [BUG] Double bonds rendered out of plane (CID: 243, 2244) HOT 2
- Support wireframe and opacity for addIsoSurface in VRML Export HOT 2
- [BUG] Crystal supercell displays in a very weird way HOT 10
- Enable Model Translation on Right-Click and Mouse Movement. HOT 3
- Can't select properly, nor generate cartoon & multiple structures HOT 9
- Assign Property to selection, select and colour by property HOT 2
- View multiple models with absolute positions (i.e. no centering) HOT 8
- Stick representation for IONS HOT 2
- [BUG] WRONG BONDS BEING DRAWN HOT 8
- Opening MANY models efficiently HOT 3
- PRMTOP needs to parse residue names
- Highlighting specific residues HOT 7
- use less CPU for animations HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dmol.js.