refactor view state
- 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.