nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
658 stars 168 forks source link

Web Component Wrapper? #690

Open markfortner opened 4 years ago

markfortner commented 4 years ago

I was wondering if there were any plans for a web component wrapper? It would make it easier to integrate into a web page, bind to data models, and respond to events, as shown below.

<bio-pdb-list uniprot-id="1234" selected-pdb-id="{{selectedId}}"></bio-pdb-list>
<ngl-viewer pdb-id="[[selectedId]]"></ngl-viewer>

You would also be able to display a list of annotations for the protein, and potentially have it highlight the appropriate parts of the model whenever the user clicks on the annotations.

MarcSkovMadsen commented 7 months ago

+1. Because that would solve my issue in https://github.com/nglviewer/ngl/issues/1003.