cheminfo / nmrium

React component to display and process nuclear magnetic resonance (NMR) spectra.
https://docs.nmrium.org
MIT License
55 stars 25 forks source link

Testing the set state #3258

Open lpatiny opened 1 month ago

lpatiny commented 1 month ago

I would like to be able to drag / drop a file / folder, to convert using nmr-load-save and set the initial state of NMRium.

So after drag / drop we should have a code similar to:

read(fileCollection))
      .then((state) => {
        setNmriumBaseState(state.nmriumState.data);
      })

This new page could go in the debug menu

Image

hamed-musallam commented 2 weeks ago

@lpatiny

We similar example which slightly different but it serves the same purpose Ref API which uses the nmriumRef.current?.loadFiles which at the end calls the read function from nmr-load-save.