1.0.1 • Published 5 months ago
react-molviewer v1.0.1
react-molviewer
A React application for displaying molecules using JSmol.
How to run
With Yarn
- install dependencies
yarn install
- build
yarn build
Run in development mode
yarn start
default port is 8080
Demo: show the molecule
- open the browser and go to http://localhost:8080
How to use react-molviewer in your application
- import the component
import { MolViewer } from 'react-molviewer';
- render the component with props
<MolViewer ... />
Props
Name | Type | Description | Required |
---|---|---|---|
molContent | blob | the content of the molecule | yes |
viewType | string | the identifier type of the view, it is a string starts with 'mol', e.g. 'mol_caffeine' | yes |
fnInit | function | is used to notify the parent component that the viewer has started loading the molecule | no |
fnCb | function | is used to notify the parent component that the viewer has completed loading the molecule | no |
Contact Us
If you have any questions or suggestions, please contact the contributors:
0.0.7-rc.8
5 months ago
1.0.1
5 months ago
0.0.7-rc.7
5 months ago
1.0.0
5 months ago
0.0.7-rc.4
5 months ago
0.0.7-rc.3
5 months ago
0.0.7-rc.6
5 months ago
0.0.7-rc.5
5 months ago
0.0.7-rc.2
5 months ago
0.0.7-rc.1
5 months ago
0.0.6-rc.1
5 months ago
0.0.6-rc.4
5 months ago
0.0.6-rc.5
5 months ago
1.0.1-rc.1
5 months ago
0.0.6-rc.2
5 months ago
0.0.6-rc.3
5 months ago
0.0.6-rc.6
5 months ago
0.0.6
5 months ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago