2.1.2 • Published 6 years ago

@chemistry/mol3dview v2.1.2

Weekly downloads
-
License
-
Repository
github
Last release
6 years ago

Mol3DView - Simple Crystal Structure Viewer

Build Status

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 vreshch@gmail.com