@chemistry/crystalview

Simple Crystal Viewer v1

Usage no npm install needed!

<script type="module">
  import chemistryCrystalview from 'https://cdn.skypack.dev/@chemistry/crystalview';
</script>

README

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.