@chemistry/mol3dview
v2.1.2
Published
Crystal Structure Viewer
Downloads
228
Maintainers
Readme
Mol3DView - Simple Crystal Structure Viewer
How to use
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 [email protected]