cheminfo / cheminfo/nmrium

refactor view state

Open
#3,169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
80
Forks
34
Avg merge
2d 9h
Merged PRs (30d)
36

Description

Update the current view structure to the new one described, use the following TypeScript interfaces:

```ts
export interface ViewNuclei {
activeSpectra: ActiveSpectrum[] | null;
selectReferences: string;
}

export interface ViewNuclei1D extends ViewNuclei {
verticalAlign: VerticalAlignment;
}

export interface ViewNuclei2D extends ViewNuclei {}

export interface ViewSpectra1D {
ranges: RangeToolState;
peaks: PeaksViewState;
integrals: IntegralsViewState;
// Additional properties as needed
}

export interface ViewSpectra2D {
zones: ZoneToolState;
// Additional properties as needed
}

interface ViewState {
nuclei1D: Partial>;
nuclei2D: Partial>;
spectra1D: Record;
spectra2D: Record;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.