Tim Vandermeersch wrote:
> 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.

It's true, I've put no effort into IE support.

IIRC, it's only the graph plotter that uses canvas, via the "fplot" jQuery 
plugin.  And I think that fplot has an implementation that works with IE.  This 
is from memory, and I could be wrong.

> 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?

I don't know for sure, but I think it's probably do-able.  Shuffl is heavily 
based on jQuery, but uses jQuery in "noconflict" mode so it should be able to 
co-exist with other libraries.  I have see Shuffl work with plugin cards using 
at least two other Javascript framework libraries (MochiKit, YUI).

> 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.

I have a strong liking for jQuery, and Shuffl is built around its structures.

But the Shuffl card content rendering does not have to be implemented using 
jQuery, so if you have other preferences that should not be an impediment 
(unless code-bloat is an issue).

BTW, Shuffl is still a work-in-progress:  it's not yet developed to the point 
that I think it's ready for wider use, but hopefully that will change in the 
next few months.

#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
>>
> 


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Blueobelisk-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss

Reply via email to