@chemistry/mol3dview
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

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

Package Sidebar

Install

npm i @chemistry/mol3dview

Weekly Downloads

4

Version

2.1.2

License

none

Unpacked Size

532 kB

Total Files

68

Last publish

Collaborators

  • vreshch