On Thu, May 27, 2010 at 9:40 AM, Graham Klyne <[email protected]> wrote: > Peter, > > That would be a fun thing to add to Shuffl! I like it. > > What I'd need would be a Javascript library that takes the raw chemical data > in some form (I'm not familiar with how such things are usually represented > - CML?) and creates a rendering into a DOM object or canvas. Given that, I > could try wrapping the library with a Shuffl card plugin, and adding logic > to read data from a web "file system".
Shuffl seems great. However, it doesn't support Internet Explorer AFAIK. Canvas is also unsupported in IE. The depiction class I have, takes a molecule and uses a Painter class to abstract the actual paint API. We can have a CanvasPainter for shuffl and Firefox, Chrome, ... and svgweb or VMLPainter for IE. There are also js libraries which support graphics (dojo, google closure). Personally, I have had the best results (i.e. portable + performance [IE is slow :( ]) using dojo graphics with svgweb backend (svg for all browsers, uses a flash plugin for IE). Can these be integrated in shuffl? FYI: JChemHub is a javascript chemistry library in development. It uses the google closure library. > BTW, I think one of the keys to Javascript robustness (for me, at least) is > the jQuery library. It provides a programming model that encourages the > right kind of modularity, and helps to guide a programmer away from some of > Javascripts more treacherous bear-traps. Yes, some general library is probably needed (jquery, dojo, prototype or google closure). I have no specific preference though. Tim > #g > -- > > > Peter Murray-Rust wrote: >> >> >> On Tue, May 25, 2010 at 5:40 PM, Tim Vandermeersch >> <[email protected] <mailto:[email protected]>> wrote: >> >> >> Not a widely used one. There are some around though. jsMolEdit is >> not >> finnished AFAIK and there is Chemene JSDraw (commercial). source: >> >> http://blueobelisk.shapado.com/questions/jme-molecular-editor-alternatives >> >> jsMolEdit is a proof-of-concept I think, it's not really javascript >> either. It uses java and GWT to generate the javascript. >> >> I think the time has come for a native client-side Javascript molecular >> viewer. [I wrote JUMBO-JS for CML about 10 years ago but the browser >> technology was so mutable and fickle that it was doomed to perish]. I was >> very encouraged last week by a presentation from Graham Klyne (Oxford) who >> has created a JS tool Shuffl to create a client-side hypercard-like system >> for viewing data. Shuffl is/was funded by JISC. It convinced me that >> Javascript was sufficiently robust to revisit. >> I felt that Shuffl is crying out for a molecular viewer and that it >> should not be too dificult to create at least a basic 2D one. I've copied >> Graham as he will be coming to visit us on Friday. >> P. >> >> Tim >> >> > Craig >> > >> > >> >> ------------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Blueobelisk-discuss mailing list >> > [email protected] >> <mailto:[email protected]> >> > https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss >> > >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Blueobelisk-discuss mailing list >> [email protected] >> <mailto:[email protected]> >> https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss >> >> >> >> >> -- >> Peter Murray-Rust >> Reader in Molecular Informatics >> Unilever Centre, Dep. Of Chemistry >> University of Cambridge >> CB2 1EW, UK >> +44-1223-763069 > > ------------------------------------------------------------------------------ _______________________________________________ Blueobelisk-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss
