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

1.0.9 • Public • Published

CrystalView

GitHub Build Status License: MIT

Simple Crystal Viewer - v1

How to use

import { Mol3DView }  from '@chemistry/crystalview';
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) {
    }
});

Quick start:

  • 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

Release

git tag v1.0.0
git push --tags

License

This project is licensed under the MIT license, Copyright (c) 2020 Volodymyr Vreshch. For more information see LICENSE.md.

Package Sidebar

Install

npm i @chemistry/crystalview

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

730 kB

Total Files

22

Last publish

Collaborators

  • vreshch