0.6.0 • Published 9 years ago

specdraw v0.6.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

specdraw.js

A javascript library for interactive visualization and client-side manipulation of NMR spectra. The package is still under developlment.

Exmaples

To see the package in action, visit my codepen

Current functions:

  • Redering of 1D spectra from JSON files, including PNG compressed spectra.
  • Supports zooming, peak picking/deleting, integration.
  • Styling of spectra using CSS.

Roadmap:

  • Complete 2D spectral rendering.
  • Visualization of multiple spectra in the same SVG (using a sliding side panel to change between spectra)
  • Linking events on multiple spectra drawn in different SVGs (for metabolomics application).
  • Render "datasets" of spectra
  • Interactivity with server-side using AJAX for baseline and phase correction.

Contribution

All contributions, suggestions, feature requests are exetremely welcome. Just create an issue or a pull request, or email me @ mohamed at kuicr.kyoto-u.ac.jp

Known issues

  • Firefox bug causes 2D spectra to disappear when zoomed. Apparently the filters conflict with transform attributes applied.