

- CHEMDOODLE IN CANVAS INSTALL
- CHEMDOODLE IN CANVAS UPDATE
- CHEMDOODLE IN CANVAS CODE
- CHEMDOODLE IN CANVAS SERIES
You can see how this is done below - all in a single function, parsesmiles. Once kemia was packaged I needed to use it to generate coordinates from a smiles string which would require using the smiles parser and the coordinate generation. Google Closure library, the source is included using the :libs option - which allows kemia modules and namespaces to be used just as if they were cljs files.
CHEMDOODLE IN CANVAS INSTALL
(right now they are pull requests - if you need them you can install them from my clsjsjs/packages branches) Because kemia uses the

I decided to package both the kemia and chemdoodle webcomponents libraries for cljsjs. By providing a standardĬonvention for packaging, these libraries can be included in new clojure/clojurescript projects using a simple :require The cljsjs team is working to provide an easy way to use JS libraries.
CHEMDOODLE IN CANVAS CODE
On the technical side, clojurescript offers the advantage of using Google’sĬlosure compiler, which, among other things, allows for dead code elimination. Inspired by clojure that has a vibrant and innovative community. To carry out this project I wanted to use clojurescript, a compile-to-javascript, lisp I was still interested in trying to generate images in the browser, however, and in his final post, Noel points the way by mentioning the kemia project, a javascript chemistry library that aims to be “the world’s first open source, 100% javascript chemistry toolkit.” The rest of this post is how I used kemia, ChemDoodle, and clojurescript to make pure-browser smiles-to-canvas widget. The JS file in order to call the smiles-to-svg function in another context but started running into errors with the generated code. However, upon attempting to reuse his smiles-to-svg functions on a different webpage I discovered that output of Emscripten is difficult to reuse (or at least not obvious to someone unfamiliar with ASM.js.
CHEMDOODLE IN CANVAS SERIES
As someone interested in using the browser to interact with molecules, I thought this was a great series of posts and thought I might even be able to reuse some of the javascript he had generated. To compile a number of chemoinformatics toolkits to Javascript including OpenBabel, This library is licensed under the MIT license.A few months back Noel O’Boyle wrote a series of blog posts wherein he used Emscripten
CHEMDOODLE IN CANVAS UPDATE

Var canvas = require ( 'canvas' ), jsdom = require ( 'jsdom' ), C2S = require ( 'canvas2svg' ) var document = jsdom.
