How cool is SVG? Way, I say. Combine it with some sweet sweet JavaScript (indeed, is there any other kind?) and you can visualise large numbers of molecules with low memory footprint (vectors don't use much memory) even in the tiny 600px margin of this blog post: (scroll mouse wheel to zoom, drag to move around)
8 comments:
Very nice! Well done!
I do hope someone within the CDK community will pick up the SVG output we have :(
I didn't realise that the CDK had support. I've added a note.
Actually, this is very helpful for ChemSpotlight. I'm going to trigger preview for SMILES or large SDF using this kind of grid support.
Would be better (performance-wise) if you didn't stroke the text, that tends to be expensive compared to simply filling the text. If you want bold text just use 'font-weight' to do that instead.
Noel, what is that JavaScript you speak about that makes the SVG zoomable?
Otherwise, a small typo: "Open Babel is not the Open Source chemistry software with SVG support" (missing 'only', I guess)
Fixed typo, thanks. The Javascript is at the end of the SVG file.
The Cactvs toolkit also supports SVG structure depiction, and that since many years. (Property E_SVG_IMAGE, with parameters compatible to that of other renderers)
@xn--dahlstrm-t4a.net: I checked out your comment, but it didn't seem to make a whole lot of difference, at least with respect to dragging the 1000 molecule SVG.
Post a Comment