@chemistry/mol3dview
Version:
Crystal Structure Viewer
34 lines (27 loc) • 836 B
Markdown
# Mol3DView - Simple Crystal Structure Viewer
[](https://travis-ci.com/vreshch/mol3dview)
## How to use
```javascript
import { Mol3DView } from '@chemistry/mol3dview';
import structure from './1000004';
$(() => {
let viewer = new Mol3DView({
bgcolor: "#2b303b"
});
var element = document.getElementById('app');
viewer.append(element);
viewer.onInit();
try {
viewer.load(structure);
} catch(e) {
}
});
```
## Technical details:
* Run unit tests: `npm run test`
* Start TDD flow: `npm run tdd`
* Run linter verification: `npm run lint`
* Run linter verification & fix: `npm run lintfix`
* Build project: `npm run build`
## Contacts
* Volodymyr Vreshch vreshch@gmail.com