reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
434 stars 67 forks source link

Web Component Support? #86

Open phidias51 opened 5 years ago

phidias51 commented 5 years ago

Are there any plans to provide W3C compliant web component support? This would make it possible to embed the component as an element in a web page regardless of whether it's a React project, Vue project, or just plain HTML.

Ultimately, I'd like to be able to do something like this:

<template is="dom-repeat" items="[[compounds]]">
  <tr>
     <td>[[item.compoundId]]</td>
     <td><smiles-drawer smiles=[[item.smiles]]></td>
...
  </tr>
</template>
SimonGolms commented 4 years ago

I would also very much welcome this opportunity. May Stencil could be one way to do this...