nmrium 1.12.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +17 -10
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +39 -27
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/HorizontalAxis1D.d.ts +2 -0
- package/lib/component/1d/HorizontalAxis1D.d.ts.map +1 -0
- package/lib/component/1d/HorizontalAxis1D.js +30 -0
- package/lib/component/1d/HorizontalAxis1D.js.map +1 -0
- package/lib/component/1d/Line.js +1 -1
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/LinesSeries.d.ts.map +1 -1
- package/lib/component/1d/LinesSeries.js +2 -10
- package/lib/component/1d/LinesSeries.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -3
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.d.ts +2 -0
- package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -0
- package/lib/component/1d/baseline/BaselinePreview.js +146 -0
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -0
- package/lib/component/1d/baseline/getMedianWindow.d.ts +3 -0
- package/lib/component/1d/baseline/getMedianWindow.d.ts.map +1 -0
- package/lib/component/1d/baseline/getMedianWindow.js +5 -0
- package/lib/component/1d/baseline/getMedianWindow.js.map +1 -0
- package/lib/component/1d/baseline/getMedianY.d.ts +3 -0
- package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -0
- package/lib/component/1d/baseline/getMedianY.js +13 -0
- package/lib/component/1d/baseline/getMedianY.js.map +1 -0
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.js +4 -4
- package/lib/component/1d/database/DatabaseElements.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +6 -3
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +4 -5
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +6 -5
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -2
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/ranges/Range.js +3 -3
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +1 -1
- package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
- package/lib/component/1d/tool/PeakPointer.js +2 -1
- package/lib/component/1d/tool/PeakPointer.js.map +1 -1
- package/lib/component/1d/utilities/scale.d.ts +5 -4
- package/lib/component/1d/utilities/scale.d.ts.map +1 -1
- package/lib/component/1d/utilities/scale.js +13 -6
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +3 -17
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts +11 -0
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -0
- package/lib/component/1d-2d/components/axis_unit_picker.js +26 -0
- package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -0
- package/lib/component/1d-2d/tools/BrushXY.js +6 -6
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts +2 -2
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts.map +1 -1
- package/lib/component/2d/{XAxis.d.ts → DirectAxis2D.d.ts} +4 -4
- package/lib/component/2d/DirectAxis2D.d.ts.map +1 -0
- package/lib/component/2d/DirectAxis2D.js +42 -0
- package/lib/component/2d/DirectAxis2D.js.map +1 -0
- package/lib/component/2d/IndirectAxis2D.d.ts +12 -0
- package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -0
- package/lib/component/2d/IndirectAxis2D.js +52 -0
- package/lib/component/2d/IndirectAxis2D.js.map +1 -0
- package/lib/component/2d/SVGContent2D.js +3 -3
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +10 -12
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +2 -2
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +10 -2
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +6 -4
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/Signal.d.ts +2 -2
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/Signal.js +7 -9
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.js +3 -2
- package/lib/component/2d/zones/SignalCrosshair.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +3 -4
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +6 -6
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +109 -123
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +9 -8
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/SVGTable.d.ts +3 -2
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +2 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts +4 -3
- package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +34 -8
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +5 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +5 -4
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.js +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +43 -0
- package/lib/component/elements/Anchor.d.ts.map +1 -0
- package/lib/component/elements/Anchor.js +151 -0
- package/lib/component/elements/Anchor.js.map +1 -0
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/ColumnWrapper.d.ts +2 -1
- package/lib/component/elements/ColumnWrapper.d.ts.map +1 -1
- package/lib/component/elements/ColumnWrapper.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js +2 -2
- package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts +5 -2
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +61 -18
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +1 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +9 -5
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +7 -7
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/Input.d.ts +2 -2
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/InputRange.d.ts.map +1 -1
- package/lib/component/elements/InputRange.js.map +1 -1
- package/lib/component/elements/Label.d.ts +1 -2
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts +2 -1
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts +1 -2
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInputField.d.ts +9 -0
- package/lib/component/elements/NumberInputField.d.ts.map +1 -0
- package/lib/component/elements/NumberInputField.js +8 -0
- package/lib/component/elements/NumberInputField.js.map +1 -0
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +6 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +2 -2
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +5 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +5 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +15 -9
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +8 -4
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +2 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +1 -1
- package/lib/component/elements/ReadOnly.d.ts +2 -2
- package/lib/component/elements/ReadOnly.d.ts.map +1 -1
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Tab/DeleteButton.d.ts +2 -2
- package/lib/component/elements/Tab/DeleteButton.d.ts.map +1 -1
- package/lib/component/elements/TabTitle.d.ts.map +1 -1
- package/lib/component/elements/TabTitle.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +13 -27
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts +2 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
- package/lib/component/header/Header.js +2 -2
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +43 -24
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts +59 -19
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +6 -4
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
- package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
- package/lib/component/hooks/reduce2DSpectrum.js +60 -0
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
- package/lib/component/hooks/use2DReducer.d.ts +14 -0
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
- package/lib/component/hooks/use2DReducer.js +30 -0
- package/lib/component/hooks/use2DReducer.js.map +1 -0
- package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -0
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
- package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
- package/lib/component/hooks/useCreateNmriumZip.js +28 -0
- package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
- package/lib/component/hooks/useExport.d.ts +8 -5
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +4 -21
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.js.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -3
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts +5 -4
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +3 -3
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts +1 -1
- package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts.map +1 -1
- package/lib/component/hooks/useTriggerNewAssignmentLabel.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +24 -0
- package/lib/component/hooks/use_axis_unit.d.ts.map +1 -0
- package/lib/component/hooks/use_axis_unit.js +255 -0
- package/lib/component/hooks/use_axis_unit.js.map +1 -0
- package/lib/component/hooks/use_gridlines_config.d.ts +3 -0
- package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -0
- package/lib/component/hooks/use_gridlines_config.js +15 -0
- package/lib/component/hooks/use_gridlines_config.js.map +1 -0
- package/lib/component/hooks/use_ticks_config.d.ts +5 -0
- package/lib/component/hooks/use_ticks_config.d.ts.map +1 -0
- package/lib/component/hooks/use_ticks_config.js +13 -0
- package/lib/component/hooks/use_ticks_config.js.map +1 -0
- package/lib/component/hooks/use_visible_spectra_1d.d.ts +3 -0
- package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -0
- package/lib/component/hooks/use_visible_spectra_1d.js +12 -0
- package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -0
- package/lib/component/loader/useLoadFiles.d.ts +2 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +19 -15
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +4 -4
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +48 -3
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +4 -0
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js +5 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts +6 -2
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +46 -33
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +4 -4
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +1 -3
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +4 -0
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts +0 -2
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +1 -1
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts +2 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +4 -1
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js.map +1 -1
- package/lib/component/modal/setting/WorkspaceItem.js +6 -6
- package/lib/component/modal/setting/WorkspaceItem.js.map +1 -1
- package/lib/component/modal/setting/general_settings.d.ts +2 -8
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/general_settings.js +6 -229
- package/lib/component/modal/setting/general_settings.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +2179 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +52 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +2168 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +29 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +4 -2
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +51 -32
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1734 -188
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +14 -3
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +2 -8
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1551 -6
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +29 -40
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +276 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +53 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +36 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js +43 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +81 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +37 -9
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +56 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +67 -112
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +1118 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +3 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +139 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1552 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts +7 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js +16 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts +16 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts +14 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts +36 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js +64 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +15 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +56 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +75 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +17 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts +95 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +19 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.d.ts → validation/check_unique_by_key.d.ts} +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.js → validation/check_unique_by_key.js} +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +20 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +7 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +12 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +4 -3
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +12 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +317 -39
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +19 -29
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts +3 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +96 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts +3 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts +7 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js +2 -0
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js.map +1 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -3
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -7
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +2 -3
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +2 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +36 -4
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +24 -20
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.js +3 -3
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PanelsBar.d.ts.map +1 -1
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +2 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +2 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +3 -3
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts +7 -0
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +6 -5
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +2 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +2 -3
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -3
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +2 -3
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +5 -5
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +8 -3
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +8 -7
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +7 -5
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +11 -4
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +2 -4
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +2 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +5 -9
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +5 -4
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +3 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +10 -5
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +4 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +18 -12
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +9 -12
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +2 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -8
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +4 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +2 -0
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +2 -3
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +5 -4
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +57 -57
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +2 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +22 -3
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +6 -4
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +3 -3
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +61 -19
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +27 -34
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts +49 -0
- package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js +2 -0
- package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js.map +1 -0
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +128 -48
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +106 -41
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -3
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts +3 -3
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js +2 -2
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts +4 -3
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +2 -2
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +2 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -3
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +2 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +2 -3
- package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +14 -11
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts +8 -11
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +87 -51
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +6 -7
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +77 -70
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +8 -8
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +28 -18
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +10 -4
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +1 -2
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +3 -3
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +6 -3
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +7 -2
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +30 -17
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +2 -14
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +5 -35
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/unit_actions.d.ts +28 -0
- package/lib/component/reducer/actions/unit_actions.d.ts.map +1 -0
- package/lib/component/reducer/actions/unit_actions.js +58 -0
- package/lib/component/reducer/actions/unit_actions.js.map +1 -0
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -2
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/actions/addWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/actions/setWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +3 -2
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
- package/lib/component/utility/Evaluate.d.ts +1 -1
- package/lib/component/utility/Evaluate.d.ts.map +1 -1
- package/lib/component/utility/Evaluate.js.map +1 -1
- package/lib/component/utility/LocalStorage.d.ts +3 -3
- package/lib/component/utility/LocalStorage.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.js.map +1 -1
- package/lib/component/utility/convertPathArrayToString.d.ts +1 -1
- package/lib/component/utility/convertPathArrayToString.d.ts.map +1 -1
- package/lib/component/utility/convertPathArrayToString.js.map +1 -1
- package/lib/component/utility/export.d.ts +3 -3
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +5 -6
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/merge_replace_array.d.ts +8 -0
- package/lib/component/utility/merge_replace_array.d.ts.map +1 -0
- package/lib/component/utility/merge_replace_array.js +14 -0
- package/lib/component/utility/merge_replace_array.js.map +1 -0
- package/lib/component/utility/nucleusToString.d.ts +1 -1
- package/lib/component/utility/nucleusToString.d.ts.map +1 -1
- package/lib/component/utility/nucleusToString.js.map +1 -1
- package/lib/component/utility/replaceNucleiObjectKeys.js.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts +5 -0
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.js +18 -6
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +8 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/index.d.ts +7 -7
- package/lib/component/workspaces/index.d.ts.map +1 -1
- package/lib/component/workspaces/index.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +8 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/simulation.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.js +8 -0
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +3 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +62 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +12 -2
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +3 -36
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.js +6 -7
- package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +0 -5
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +4 -9
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +3 -9
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +11 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +4 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts +7 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +4 -2
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +7 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +3 -3
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +8 -6
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +30 -10
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +8 -9
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +2 -2
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +6 -4
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts +5 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js +10 -8
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -6
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +25 -25
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +2 -2
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +0 -8
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/checkModifierKeyActivated.d.ts +1 -1
- package/lib/data/utilities/checkModifierKeyActivated.d.ts.map +1 -1
- package/lib/data/utilities/checkModifierKeyActivated.js.map +1 -1
- package/lib/data/utilities/isNumber.d.ts +1 -1
- package/lib/data/utilities/isNumber.d.ts.map +1 -1
- package/lib/data/utilities/isNumber.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +54 -53
- package/src/component/1d/BrushTracker1D.tsx +18 -12
- package/src/component/1d/FloatPublicationString.tsx +52 -34
- package/src/component/1d/HorizontalAxis1D.tsx +69 -0
- package/src/component/1d/Line.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +2 -17
- package/src/component/1d/SVGContent1D.tsx +2 -4
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/baseline/BaselinePreview.tsx +242 -0
- package/src/component/1d/baseline/getMedianWindow.ts +6 -0
- package/src/component/1d/baseline/getMedianY.ts +15 -0
- package/src/component/1d/database/DatabaseElements.tsx +9 -4
- package/src/component/1d/database/DatabaseSpectrum.tsx +11 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +8 -2
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +6 -5
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +3 -0
- package/src/component/1d/peaks/PeakEditionManager.tsx +2 -5
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/Range.tsx +3 -3
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d/tool/BaseLine.tsx +1 -1
- package/src/component/1d/tool/PeakPointer.tsx +3 -1
- package/src/component/1d/utilities/scale.ts +20 -13
- package/src/component/1d-2d/FieldEdition.tsx +2 -2
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +10 -22
- package/src/component/1d-2d/components/axis_unit_picker.tsx +53 -0
- package/src/component/1d-2d/tools/BrushXY.tsx +6 -6
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +2 -2
- package/src/component/2d/DirectAxis2D.tsx +104 -0
- package/src/component/2d/IndirectAxis2D.tsx +139 -0
- package/src/component/2d/SVGContent2D.tsx +4 -4
- package/src/component/2d/fid/FidCanvas.tsx +2 -2
- package/src/component/2d/ft/Contours.tsx +14 -27
- package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -2
- package/src/component/2d/utilities/scale.ts +26 -6
- package/src/component/2d/zones/Signal.tsx +8 -12
- package/src/component/2d/zones/SignalCrosshair.tsx +3 -2
- package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
- package/src/component/2d/zones/Zone.tsx +4 -4
- package/src/component/EventsTrackers/BrushTracker.tsx +15 -7
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +115 -128
- package/src/component/EventsTrackers/MouseTracker.tsx +10 -14
- package/src/component/SVGTable.tsx +5 -5
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/DispatchContext.tsx +3 -1
- package/src/component/context/FilterSyncOptionsContext.tsx +62 -20
- package/src/component/context/ScaleContext.tsx +17 -15
- package/src/component/context/SortSpectraContext.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +4 -5
- package/src/component/elements/Alert.tsx +2 -2
- package/src/component/elements/Anchor.tsx +361 -0
- package/src/component/elements/Button.tsx +2 -1
- package/src/component/elements/ColumnWrapper.tsx +3 -1
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
- package/src/component/elements/D3Axis.tsx +118 -47
- package/src/component/elements/DialogManager.tsx +1 -1
- package/src/component/elements/DraggableDialog.tsx +3 -3
- package/src/component/elements/EditableColumn.tsx +22 -16
- package/src/component/elements/Input.tsx +3 -2
- package/src/component/elements/InputRange.tsx +3 -3
- package/src/component/elements/Label.tsx +1 -1
- package/src/component/elements/MoleculeSelection.tsx +1 -1
- package/src/component/elements/NumberInput2.tsx +2 -2
- package/src/component/elements/NumberInput2Controller.tsx +1 -1
- package/src/component/elements/NumberInputField.tsx +23 -0
- package/src/component/elements/ReactTable/Elements/EmptyDataRow.tsx +8 -3
- package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +23 -11
- package/src/component/elements/ReactTable/ReactTable.tsx +44 -14
- package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +2 -2
- package/src/component/elements/ReadOnly.tsx +3 -3
- package/src/component/elements/Sections.tsx +2 -2
- package/src/component/elements/Tab/DeleteButton.tsx +2 -2
- package/src/component/elements/TabTitle.tsx +2 -2
- package/src/component/elements/dropDownButton/DropDownButton.tsx +1 -1
- package/src/component/elements/export/ExportContent.tsx +12 -32
- package/src/component/elements/export/ExportOptionsModal.tsx +1 -1
- package/src/component/elements/export/units.ts +1 -1
- package/src/component/elements/export/useExportConfigurer.tsx +1 -1
- package/src/component/elements/resizer/SVGResizer.tsx +3 -3
- package/src/component/header/Header.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +144 -84
- package/src/component/highlight/index.tsx +57 -38
- package/src/component/hooks/reduce2DSpectrum.ts +98 -0
- package/src/component/hooks/use2DReducer.tsx +56 -0
- package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
- package/src/component/hooks/useCombinedRefs.ts +1 -0
- package/src/component/hooks/useCreateNmriumZip.ts +37 -0
- package/src/component/hooks/useExport.tsx +16 -31
- package/src/component/hooks/useFilter.ts +1 -2
- package/src/component/hooks/useSVGUnitConverter.ts +1 -1
- package/src/component/hooks/useSaveSettings.tsx +8 -5
- package/src/component/hooks/useTableSortBy.tsx +12 -8
- package/src/component/hooks/useTriggerNewAssignmentLabel.ts +1 -1
- package/src/component/hooks/use_axis_unit.ts +329 -0
- package/src/component/hooks/use_gridlines_config.ts +18 -0
- package/src/component/hooks/use_ticks_config.ts +15 -0
- package/src/component/hooks/use_visible_spectra_1d.ts +21 -0
- package/src/component/loader/useLoadFiles.ts +30 -28
- package/src/component/main/InnerNMRium.tsx +7 -4
- package/src/component/main/NMRium.tsx +50 -2
- package/src/component/main/NMRiumRefAPI.ts +11 -1
- package/src/component/main/NMRiumStateProvider.tsx +70 -38
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/modal/LoadJCAMPModal.tsx +4 -4
- package/src/component/modal/MultipletAnalysisModal.tsx +2 -2
- package/src/component/modal/PublicationStringModal.tsx +10 -1
- package/src/component/modal/SaveAsModal.tsx +1 -1
- package/src/component/modal/changeSum/SelectMolecule.tsx +1 -1
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +3 -2
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +3 -3
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +4 -4
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +7 -3
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +2 -2
- package/src/component/modal/metaImportation/utils/mapColumnToSelectItems.ts +1 -1
- package/src/component/modal/setting/WorkspaceItem.tsx +7 -7
- package/src/component/modal/setting/general_settings.tsx +13 -503
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +94 -0
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +56 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +83 -50
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +59 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +15 -20
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +45 -79
- package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +89 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +75 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/axis_tab.tsx +116 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +187 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +48 -8
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +123 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +12 -6
- package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +124 -233
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +10 -10
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +298 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +218 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/cell_actions.tsx +18 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.tsx +45 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.tsx +42 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/cell_input.tsx +127 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +71 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +21 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.ts +24 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +8 -6
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +11 -8
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +17 -9
- package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +19 -33
- package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +173 -0
- package/src/component/modal/setting/tanstack_general_settings/workspaces/picker.tsx +91 -0
- package/src/component/modal/setting/tanstack_general_settings/workspaces/props.ts +8 -0
- package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +4 -3
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +11 -10
- package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +63 -60
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +6 -1
- package/src/component/panels/MoleculesPanel/MoleculeHeader.tsx +7 -6
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +1 -0
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +45 -5
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +38 -33
- package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +3 -3
- package/src/component/panels/Panels.tsx +2 -1
- package/src/component/panels/PanelsBar.tsx +4 -3
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +34 -33
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +9 -8
- package/src/component/panels/RangesPanel/RangesPanel.tsx +19 -16
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +47 -46
- package/src/component/panels/RangesPanel/RangesTable.tsx +5 -5
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +19 -15
- package/src/component/panels/RangesPanel/TableColumns/RelativeColumn.tsx +4 -10
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +9 -9
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +8 -11
- package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +16 -7
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +2 -2
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +7 -10
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +5 -7
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +15 -10
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +5 -4
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +3 -2
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +4 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +32 -27
- package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +15 -7
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +4 -7
- package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +6 -9
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +6 -5
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +5 -1
- package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +57 -57
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +11 -12
- package/src/component/panels/databasePanel/DatabasePanel.tsx +75 -67
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +114 -113
- package/src/component/panels/databasePanel/DatabaseTable.tsx +34 -3
- package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +9 -6
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +3 -3
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +328 -81
- package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +4 -3
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +37 -54
- package/src/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.tsx +3 -3
- package/src/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.tsx +3 -3
- package/src/component/panels/filtersPanel/Filters/ShiftOptionsPanel.tsx +3 -2
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +5 -5
- package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +3 -2
- package/src/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.ts +55 -0
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +148 -69
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -1
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +18 -12
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisCell.tsx +3 -4
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +5 -10
- package/src/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +138 -109
- package/src/component/panels/predictionPanel/PredictionPreferences.tsx +34 -34
- package/src/component/reducer/Reducer.ts +23 -13
- package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
- package/src/component/reducer/actions/DatabaseActions.ts +131 -81
- package/src/component/reducer/actions/DomainActions.ts +4 -4
- package/src/component/reducer/actions/FiltersActions.ts +98 -103
- package/src/component/reducer/actions/InsetActions.ts +8 -5
- package/src/component/reducer/actions/LoadAction.ts +36 -27
- package/src/component/reducer/actions/MoleculeActions.ts +10 -4
- package/src/component/reducer/actions/PeaksActions.ts +1 -1
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +9 -6
- package/src/component/reducer/actions/SpectraActions.ts +56 -22
- package/src/component/reducer/actions/ToolsActions.ts +4 -72
- package/src/component/reducer/actions/unit_actions.ts +138 -0
- package/src/component/reducer/helper/Zoom1DManager.ts +2 -1
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -2
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
- package/src/component/reducer/preferences/actions/addWorkspace.ts +1 -1
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +1 -1
- package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
- package/src/component/reducer/preferences/actions/setWorkspace.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +8 -8
- package/src/component/utility/Evaluate.ts +1 -1
- package/src/component/utility/LocalStorage.ts +6 -3
- package/src/component/utility/convertPathArrayToString.ts +1 -1
- package/src/component/utility/export.ts +13 -12
- package/src/component/utility/merge_replace_array.ts +12 -0
- package/src/component/utility/nucleusToString.ts +1 -1
- package/src/component/utility/replaceNucleiObjectKeys.ts +1 -1
- package/src/component/utility/stackOverlappingLabels.ts +27 -9
- package/src/component/workspaces/exercise.ts +8 -0
- package/src/component/workspaces/index.ts +1 -1
- package/src/component/workspaces/prediction.ts +8 -0
- package/src/component/workspaces/simulation.ts +8 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +73 -14
- package/src/data/PredictionManager.ts +32 -7
- package/src/data/SpectraManager.ts +3 -44
- package/src/data/data1d/Spectrum1D/get1DColor.ts +12 -14
- package/src/data/data1d/Spectrum1D/get1DDataXY.ts +0 -7
- package/src/data/data1d/Spectrum1D/getReferenceShift.ts +5 -10
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +17 -6
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +3 -7
- package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +2 -2
- package/src/data/data1d/Spectrum1D/ranges/detectSignals.ts +11 -8
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +9 -3
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +4 -0
- package/src/data/data1d/database.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +20 -7
- package/src/data/data2d/Spectrum2D/contours.ts +40 -19
- package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -15
- package/src/data/data2d/Spectrum2D/getMissingProjection.ts +2 -2
- package/src/data/data2d/Spectrum2D/getSlice.ts +6 -5
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +2 -18
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +2 -2
- package/src/data/molecules/Molecule.ts +18 -8
- package/src/data/molecules/MoleculeManager.ts +31 -29
- package/src/data/parseMeta/linkMetaWithSpectra.ts +4 -4
- package/src/data/utilities/RangeUtilities.ts +1 -9
- package/src/data/utilities/checkModifierKeyActivated.ts +1 -1
- package/src/data/utilities/isNumber.ts +1 -1
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/XAxis1D.d.ts +0 -6
- package/lib/component/1d/XAxis1D.d.ts.map +0 -1
- package/lib/component/1d/XAxis1D.js +0 -24
- package/lib/component/1d/XAxis1D.js.map +0 -1
- package/lib/component/1d/tool/BaseLineZones.d.ts +0 -3
- package/lib/component/1d/tool/BaseLineZones.d.ts.map +0 -1
- package/lib/component/1d/tool/BaseLineZones.js +0 -41
- package/lib/component/1d/tool/BaseLineZones.js.map +0 -1
- package/lib/component/2d/XAxis.d.ts.map +0 -1
- package/lib/component/2d/XAxis.js +0 -22
- package/lib/component/2d/XAxis.js.map +0 -1
- package/lib/component/2d/YAxis.d.ts +0 -12
- package/lib/component/2d/YAxis.d.ts.map +0 -1
- package/lib/component/2d/YAxis.js +0 -27
- package/lib/component/2d/YAxis.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +0 -9
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +0 -118
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +0 -153
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -2
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +0 -73
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts +0 -2
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +0 -89
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +0 -46
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +0 -103
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +0 -99
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts +0 -2
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +0 -106
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +0 -52
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts +0 -3
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +0 -138
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +0 -2
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts.map +0 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +0 -149
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +0 -1
- package/lib/component/modal/setting/settingsValidation.d.ts +0 -2
- package/lib/component/modal/setting/settingsValidation.d.ts.map +0 -1
- package/lib/component/modal/setting/settingsValidation.js +0 -70
- package/lib/component/modal/setting/settingsValidation.js.map +0 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +0 -7
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +0 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +0 -105
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +0 -1
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +0 -1
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +0 -1
- package/lib/data/types/common/Keys.d.ts +0 -4
- package/lib/data/types/common/Keys.d.ts.map +0 -1
- package/lib/data/types/common/Keys.js +0 -2
- package/lib/data/types/common/Keys.js.map +0 -1
- package/src/component/1d/XAxis1D.tsx +0 -54
- package/src/component/1d/tool/BaseLineZones.tsx +0 -83
- package/src/component/2d/XAxis.tsx +0 -58
- package/src/component/2d/YAxis.tsx +0 -79
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +0 -278
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +0 -221
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +0 -252
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +0 -193
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +0 -152
- package/src/component/modal/setting/settings-tabs/ImportationFiltersTabContent.tsx +0 -173
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +0 -224
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +0 -230
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +0 -113
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +0 -308
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +0 -181
- package/src/component/modal/setting/settingsValidation.ts +0 -92
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +0 -218
- package/src/data/types/common/Keys.ts +0 -11
- /package/src/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.ts → validation/check_unique_by_key.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExportConfigurer.js","sourceRoot":"","sources":["../../../../src/component/elements/export/useExportConfigurer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,UAAU,mBAAmB,CAAC,OAAuB;IACzD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,MAAM,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAE5C,SAAS,UAAU,CACjB,KAAa,EACb,MAA0B,EAC1B,MAA0B;QAE1B,IAAI,oBAAoB,EAAE,CAAC;YACzB,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACvE,MAAM,OAAO,GAAG,KAAK,GAAG,YAAY,CAAC;YACrC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;YAClC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;YAChC,OAAO,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;QAClC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"useExportConfigurer.js","sourceRoot":"","sources":["../../../../src/component/elements/export/useExportConfigurer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAA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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
1
2
|
export interface Position {
|
|
2
3
|
x1: number;
|
|
3
4
|
x2: number;
|
|
4
5
|
}
|
|
5
|
-
type ChildType =
|
|
6
|
+
type ChildType = ReactElement[] | ReactElement | boolean | null;
|
|
6
7
|
export interface ResizerProps {
|
|
7
8
|
children?: ChildType | ((position: Position, isActive: boolean) => ChildType);
|
|
8
9
|
position: Position;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGResizer.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/resizer/SVGResizer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SVGResizer.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/resizer/SVGResizer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsC,YAAY,EAAE,MAAM,OAAO,CAAC;AA8B9E,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,KAAK,SAAS,GAAG,YAAY,EAAE,GAAG,YAAY,GAAG,OAAO,GAAG,IAAI,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC;IAC9E,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,qBAAqB,GAAG,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,YAAY,2CAmBrD"}
|
|
@@ -16,7 +16,7 @@ import { useWorkspaceAction } from '../hooks/useWorkspaceAction.js';
|
|
|
16
16
|
import { LogsHistoryModal } from '../modal/LogsHistoryModal.js';
|
|
17
17
|
import AboutUsModal from '../modal/aboutUs/AboutUsModal.js';
|
|
18
18
|
import WorkspaceItem from '../modal/setting/WorkspaceItem.js';
|
|
19
|
-
import
|
|
19
|
+
import { GeneralSettingsToolbarItem } from '../modal/setting/general_settings.js';
|
|
20
20
|
import { options } from '../toolbar/ToolTypes.js';
|
|
21
21
|
import { renderCoreSlot } from '../utility/renderCoreSlot.js';
|
|
22
22
|
import { AutoPeakPickingOptionPanel } from './AutoPeakPickingOptionPanel.js';
|
|
@@ -93,7 +93,7 @@ function HeaderInner(props) {
|
|
|
93
93
|
alignItems: 'center',
|
|
94
94
|
}, children: [_jsx("div", { children: _jsx(Toolbar, { children: _jsx(AboutUsModal, {}) }) }), _jsx("div", { className: "toolOptionsPanel", style: { flex: 1 }, children: selectedPanel })] }), _jsxs(HeaderWrapper, { style: {
|
|
95
95
|
alignItems: 'center',
|
|
96
|
-
}, children: [_jsx(PluginTopBarRight, { children: renderCoreSlot(core, 'topbar.right') }), !hideWorkspaces && (_jsx(DropDownButton, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem })), !hideGeneralSettings && _jsx(SaveButton, {}), !general?.hideLogs && _jsx(LogsHistoryModal, {}), _jsx("div", { children: _jsxs(Toolbar, { children: [!general?.hideHelp && (_jsx(Toolbar.Item, { id: "user-manual", tooltip: "User manual", onClick: () => window.open(docsBaseUrl, '_blank'), icon: _jsx(FaQuestionCircle, {}) })), _jsx(Toolbar.Item, { id: "user-manual", tooltip: "NMRium tutorials", onClick: () => window.open('https://www.nmrium.org/tutorials', '_blank'), icon: _jsx(FaFilm, {}) }), !hideGeneralSettings && (_jsx(
|
|
96
|
+
}, children: [_jsx(PluginTopBarRight, { children: renderCoreSlot(core, 'topbar.right') }), !hideWorkspaces && (_jsx(DropDownButton, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem })), !hideGeneralSettings && _jsx(SaveButton, {}), !general?.hideLogs && _jsx(LogsHistoryModal, {}), _jsx("div", { children: _jsxs(Toolbar, { children: [!general?.hideHelp && (_jsx(Toolbar.Item, { id: "user-manual", tooltip: "User manual", onClick: () => window.open(docsBaseUrl, '_blank'), icon: _jsx(FaQuestionCircle, {}) })), _jsx(Toolbar.Item, { id: "user-manual", tooltip: "NMRium tutorials", onClick: () => window.open('https://www.nmrium.org/tutorials', '_blank'), icon: _jsx(FaFilm, {}) }), !hideGeneralSettings && (_jsx(GeneralSettingsToolbarItem, { height: height / 2 })), !fullscreen.isFullScreen && !general?.hideMaximize && (_jsx(Toolbar.Item, { id: "full-screen", onClick: fullscreen.toggle, tooltip: "Full screen", icon: _jsx(FaRegWindowMaximize, {}) }))] }) })] })] }) }));
|
|
97
97
|
}
|
|
98
98
|
function SaveButton() {
|
|
99
99
|
const { workspace, workspaces, originalWorkspaces } = usePreferences();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/component/header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD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;AACJ,CAAC;AAED,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleBaseLineCorrectionOptionsPanel.d.ts","sourceRoot":"","sources":["../../../src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleBaseLineCorrectionOptionsPanel.d.ts","sourceRoot":"","sources":["../../../src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx"],"names":[],"mappings":"AAoMA,wBAAgB,oCAAoC,4CAGnD"}
|
|
@@ -1,36 +1,55 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Checkbox } from '@blueprintjs/core';
|
|
3
2
|
import { Select } from '@blueprintjs/select';
|
|
4
|
-
import { memo } from 'react';
|
|
3
|
+
import { memo, useCallback } from 'react';
|
|
5
4
|
import { Button } from 'react-science/ui';
|
|
5
|
+
import { useFilterSyncOptions } from "../context/FilterSyncOptionsContext.js";
|
|
6
6
|
import ActionButtons from '../elements/ActionButtons.js';
|
|
7
7
|
import Label from '../elements/Label.js';
|
|
8
|
-
import {
|
|
8
|
+
import { NumberInputField } from '../elements/NumberInputField.js';
|
|
9
9
|
import { useFilter } from '../hooks/useFilter.js';
|
|
10
10
|
import { baselineCorrectionsAlgorithms, getBaselineData, useBaselineCorrection, } from '../panels/filtersPanel/Filters/hooks/useBaselineCorrection.js';
|
|
11
11
|
import { headerLabelStyle } from './Header.js';
|
|
12
12
|
import { HeaderWrapper } from './HeaderWrapper.js';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
const BaselineAlgorithmFields = {
|
|
14
|
+
airpls: AirplsFields,
|
|
15
|
+
polynomial: PolynomialFields,
|
|
16
|
+
whittaker: WhittakerFields,
|
|
17
|
+
bernstein: BernsteinFields,
|
|
18
|
+
};
|
|
19
|
+
function BaseLineCorrectionInnerPanel({ filter, }) {
|
|
20
|
+
const { reset, onAlgorithmChange, submitHandler, handleSubmit, handleApplyFilter, handleCancelFilter, control, algorithm, defaultAlgorithmSelectProps, } = useBaselineCorrection(filter);
|
|
21
|
+
const { sharedFilterOptions } = useFilterSyncOptions();
|
|
22
|
+
const handleAlgorithmSelect = useCallback((item) => {
|
|
23
|
+
onAlgorithmChange(item);
|
|
24
|
+
const { values } = getBaselineData(item.value, filter?.value);
|
|
25
|
+
const { anchors = [] } = sharedFilterOptions || {};
|
|
26
|
+
const options = { ...values, anchors };
|
|
27
|
+
reset(options);
|
|
28
|
+
setTimeout(() => handleApplyFilter(options, 'onChange'), 0);
|
|
29
|
+
}, [
|
|
30
|
+
onAlgorithmChange,
|
|
31
|
+
filter?.value,
|
|
32
|
+
sharedFilterOptions,
|
|
33
|
+
reset,
|
|
34
|
+
handleApplyFilter,
|
|
35
|
+
]);
|
|
36
|
+
const handleDone = useCallback(() => handleSubmit((values) => handleApplyFilter(values))(), [handleSubmit, handleApplyFilter]);
|
|
37
|
+
const AlgorithmFields = algorithm?.value && algorithm.value !== 'cubic'
|
|
38
|
+
? BaselineAlgorithmFields[algorithm.value]
|
|
39
|
+
: null;
|
|
40
|
+
return (_jsxs(HeaderWrapper, { children: [_jsx(Label, { title: "Algorithm: ", style: headerLabelStyle, children: _jsx(Select, { items: baselineCorrectionsAlgorithms, filterable: false, itemsEqual: "value", onItemSelect: handleAlgorithmSelect, ...defaultAlgorithmSelectProps, children: _jsx(Button, { text: algorithm?.label, endIcon: "double-caret-vertical" }) }) }), AlgorithmFields && (_jsx(AlgorithmFields, { control: control, onValueChange: submitHandler })), _jsx(ActionButtons, { onDone: handleDone, onCancel: handleCancelFilter })] }));
|
|
41
|
+
}
|
|
42
|
+
function AirplsFields({ control, onValueChange, }) {
|
|
43
|
+
return (_jsxs("div", { style: { display: 'flex' }, children: [_jsx(NumberInputField, { labelProps: { title: 'Lambda:', style: headerLabelStyle }, name: "lambda", control: control, min: 1, onValueChange: onValueChange, style: { width: '60px' }, debounceTime: 250 }), _jsx(NumberInputField, { labelProps: { title: 'Tolerance:', style: headerLabelStyle }, name: "tolerance", control: control, min: 0, stepSize: 0.001, majorStepSize: 0.001, minorStepSize: 0.001, onValueChange: onValueChange, style: { width: '60px' }, debounceTime: 250 })] }));
|
|
44
|
+
}
|
|
45
|
+
function PolynomialFields({ control, onValueChange, }) {
|
|
46
|
+
return (_jsx(NumberInputField, { labelProps: { title: 'Degree [1 - 20]:', style: headerLabelStyle }, name: "degree", control: control, min: 1, max: 20, onValueChange: onValueChange, style: { width: '60px' }, debounceTime: 250 }));
|
|
47
|
+
}
|
|
48
|
+
function WhittakerFields({ control, onValueChange, }) {
|
|
49
|
+
return (_jsx(NumberInputField, { labelProps: { title: 'Lambda:', style: headerLabelStyle }, name: "lambda", control: control, min: 1, onValueChange: onValueChange, style: { width: '60px' }, debounceTime: 250 }));
|
|
50
|
+
}
|
|
51
|
+
function BernsteinFields({ control, onValueChange, }) {
|
|
52
|
+
return (_jsx(NumberInputField, { labelProps: { title: 'Degree:', style: headerLabelStyle }, name: "degree", control: control, min: 1, onValueChange: onValueChange, style: { width: '60px' }, debounceTime: 250 }));
|
|
34
53
|
}
|
|
35
54
|
const MemoizedBaseLineCorrectionPanel = memo(BaseLineCorrectionInnerPanel);
|
|
36
55
|
export function SimpleBaseLineCorrectionOptionsPanel() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleBaseLineCorrectionOptionsPanel.js","sourceRoot":"","sources":["../../../src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SimpleBaseLineCorrectionOptionsPanel.js","sourceRoot":"","sources":["../../../src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAyC,CAAC;AAC/E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAUlD,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,qBAAqB,GACtB,MAAM,+DAA+D,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,uBAAuB,GAA8C;IACzE,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE,gBAAgB;IAC5B,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAMF,SAAS,4BAA4B,CAAC,EACpC,MAAM,GAC4B;IAClC,MAAM,EACJ,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACP,SAAS,EACT,2BAA2B,GAC5B,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAElC,MAAM,EAAE,mBAAmB,EAAE,GAC3B,oBAAoB,EAA4B,CAAC;IAEnD,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,IAAoD,EAAE,EAAE;QACvD,iBAAi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AK,EAAE,MAAM,EAAE,EACxB,YAAY,EAAE,GAAG,GACjB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EACvB,OAAO,EACP,aAAa,GACyB;IACtC,OAAO,CACL,KAAC,gBAAgB,IACf,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,EACzD,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,CAAC,EACN,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,YAAY,EAAE,GAAG,GACjB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EACvB,OAAO,EACP,aAAa,GACyB;IACtC,OAAO,CACL,KAAC,gBAAgB,IACf,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,EACzD,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,CAAC,EACN,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,YAAY,EAAE,GAAG,GACjB,CACH,CAAC;AACJ,CAAC;AAED,MAAM,+BAA+B,GAAG,IAAI,CAAC,4BAA4B,CAAC,CAAC;AAE3E,MAAM,UAAU,oCAAoC;IAClD,MAAM,MAAM,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAC/C,OAAO,KAAC,+BAA+B,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC;AAC7D,CAAC"}
|
|
@@ -1,30 +1,70 @@
|
|
|
1
1
|
import type { Range } from '@zakodium/nmr-types';
|
|
2
|
-
import type { CSSProperties, MouseEvent } from 'react';
|
|
2
|
+
import type { CSSProperties, MouseEvent, PropsWithChildren } from 'react';
|
|
3
3
|
import type { ExclusionZone } from '../../data/types/data1d/ExclusionZone.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
extra?: {
|
|
8
|
-
zone?: ExclusionZone;
|
|
9
|
-
spectrumID?: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
jcampURL?: string;
|
|
12
|
-
baseURL?: string;
|
|
13
|
-
ranges?: Range[];
|
|
14
|
-
colKey?: string;
|
|
15
|
-
} | null;
|
|
4
|
+
interface BaseSource {
|
|
5
|
+
id: string;
|
|
6
|
+
spectrumID?: string;
|
|
16
7
|
}
|
|
8
|
+
interface ExclusionZoneSource {
|
|
9
|
+
zone: ExclusionZone;
|
|
10
|
+
spectrumID: string;
|
|
11
|
+
}
|
|
12
|
+
interface HighlightEventSourceMap {
|
|
13
|
+
PEAK: BaseSource;
|
|
14
|
+
INTEGRAL: BaseSource;
|
|
15
|
+
SIGNAL: never;
|
|
16
|
+
SIGNAL_1D: BaseSource & {
|
|
17
|
+
rangeId: string;
|
|
18
|
+
};
|
|
19
|
+
RANGE: BaseSource;
|
|
20
|
+
RANGE_PEAK: BaseSource;
|
|
21
|
+
ZONE: {
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
BASELINE_ZONE: {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
PHASE_CORRECTION_TRACE: {
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
EXCLUSION_ZONE: ExclusionZoneSource;
|
|
31
|
+
MATRIX_GENERATION_EXCLUSION_ZONE: ExclusionZoneSource;
|
|
32
|
+
MULTIPLE_ANALYSIS_ZONE: {
|
|
33
|
+
colKey: string;
|
|
34
|
+
};
|
|
35
|
+
DATABASE: {
|
|
36
|
+
ranges: Range[];
|
|
37
|
+
jcampURL: string;
|
|
38
|
+
baseURL: string;
|
|
39
|
+
};
|
|
40
|
+
ATOM: never;
|
|
41
|
+
UNKNOWN: never;
|
|
42
|
+
}
|
|
43
|
+
export type HighlightEventSource = {
|
|
44
|
+
[K in keyof HighlightEventSourceMap]: HighlightEventSourceMap[K] extends never ? {
|
|
45
|
+
type: K;
|
|
46
|
+
extra?: never;
|
|
47
|
+
} : {
|
|
48
|
+
type: K;
|
|
49
|
+
extra: HighlightEventSourceMap[K];
|
|
50
|
+
};
|
|
51
|
+
}[keyof HighlightEventSourceMap];
|
|
52
|
+
export type HighlightEventSourceType = keyof HighlightEventSourceMap;
|
|
53
|
+
export type HighlightEventSourceExtra<T extends HighlightEventSourceType> = HighlightEventSourceMap[T];
|
|
54
|
+
export declare function isHighlightEventSource<T extends HighlightEventSourceType>(source: HighlightEventSource, ...types: T[]): source is Extract<HighlightEventSource, {
|
|
55
|
+
type: T;
|
|
56
|
+
}>;
|
|
17
57
|
type HighlightActions = 'HIDE' | 'SHOW' | 'SET_PERMANENT' | 'UNSET_PERMANENT';
|
|
18
58
|
interface HighlightState {
|
|
19
59
|
highlights: Record<string, number>;
|
|
20
60
|
highlighted: string[];
|
|
21
61
|
highlightedPermanently: string[];
|
|
22
|
-
sourceData:
|
|
62
|
+
sourceData: HighlightEventSource | null;
|
|
23
63
|
}
|
|
24
64
|
interface HighlightPayload {
|
|
25
65
|
convertedHighlights: string[];
|
|
26
66
|
id?: number | string;
|
|
27
|
-
sourceData?:
|
|
67
|
+
sourceData?: HighlightEventSource | null;
|
|
28
68
|
}
|
|
29
69
|
interface HighlightContextProps {
|
|
30
70
|
highlight: HighlightState;
|
|
@@ -34,13 +74,13 @@ interface HighlightContextProps {
|
|
|
34
74
|
}) => void;
|
|
35
75
|
remove: () => void;
|
|
36
76
|
}
|
|
37
|
-
export declare function HighlightProvider(props:
|
|
77
|
+
export declare function HighlightProvider(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
38
78
|
export declare function useHighlightData(): HighlightContextProps;
|
|
39
79
|
/**
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
80
|
+
* @param highlights
|
|
81
|
+
* @param sourceData
|
|
42
82
|
*/
|
|
43
|
-
export declare function useHighlight(highlights: Array<string | number>, sourceData?:
|
|
83
|
+
export declare function useHighlight(highlights: Array<string | number>, sourceData?: HighlightEventSource | null): {
|
|
44
84
|
isActive: boolean;
|
|
45
85
|
defaultActiveStyle: CSSProperties;
|
|
46
86
|
onHover: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/highlight/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/highlight/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAU1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE9E,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,UAAU,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,aAAa,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,sBAAsB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAC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ACjC,UAAU,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACzC;AACD,UAAU,gBAAgB;IACxB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC1C;AACD,UAAU,qBAAqB;IAC7B,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,IAAI,EAAE,gBAAgB,CAAC;QACvB,OAAO,CAAC,EAAE,gBAAgB,CAAC;KAC5B,KAAK,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAgFD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,2CAqBzD;AAED,wBAAgB,gBAAgB,0BAE/B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAClC,UAAU,GAAE,oBAAoB,GAAG,IAAW;;;;;;;iBAqFxC,UAAU;;;;eAAV,UAAU;cApBT,MAAM,GAAG,MAAM;iBAUf,MAAM,GAAG,MAAM;EA+CvB"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useEffect, useMemo, useReducer, } from 'react';
|
|
3
|
+
export function isHighlightEventSource(source, ...types) {
|
|
4
|
+
return types.includes(source.type);
|
|
5
|
+
}
|
|
3
6
|
const highLightStyle = {
|
|
4
7
|
backgroundColor: '#ff6f0091',
|
|
5
8
|
};
|
|
@@ -18,11 +21,10 @@ function highlightReducer(state, action) {
|
|
|
18
21
|
switch (action.type) {
|
|
19
22
|
case 'SHOW': {
|
|
20
23
|
const { convertedHighlights = [], sourceData } = action.payload || {};
|
|
21
|
-
const { type = 'UNKNOWN', extra = null } = sourceData || {};
|
|
22
24
|
const newState = {
|
|
23
25
|
...state,
|
|
24
26
|
highlights: { ...state.highlights },
|
|
25
|
-
sourceData: { type
|
|
27
|
+
sourceData: sourceData ?? { type: 'UNKNOWN' },
|
|
26
28
|
};
|
|
27
29
|
for (const value of convertedHighlights) {
|
|
28
30
|
if (!(value in newState.highlights)) {
|
|
@@ -85,8 +87,8 @@ export function useHighlightData() {
|
|
|
85
87
|
return useContext(highlightContext);
|
|
86
88
|
}
|
|
87
89
|
/**
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
90
|
+
* @param highlights
|
|
91
|
+
* @param sourceData
|
|
90
92
|
*/
|
|
91
93
|
export function useHighlight(highlights, sourceData = null) {
|
|
92
94
|
if (!Array.isArray(highlights)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/highlight/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,GACX,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/highlight/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,GACX,MAAM,OAAO,CAAC;AA8Cf,MAAM,UAAU,sBAAsB,CACpC,MAA4B,EAC5B,GAAG,KAAU;IAEb,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAS,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,cAAc,GAAkB;IACpC,eAAe,EAAE,WAAW;CAC7B,CAAC;AAwBF,MAAM,UAAU,GAAG;IACjB,SAAS,EAAE;QACT,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,sBAAsB,EAAE,EAAE;QAC1B,UAAU,EAAE,IAAI;KACjB;IACD,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI;IACpB,MAAM,EAAE,GAA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P,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAC;IACL,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,KAAK,GAAG,WAAW,CACvB,CAAC,CAAa,EAAE,EAAE;QAChB,IAAI,CAAC,EAAE,CAAC;YACN,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACtB,CAAC;QAED,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,QAAQ,CAAC;gBACP,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,EAAE,mBAAmB,EAAE;aACjC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC;gBACP,IAAI,EAAE,iBAAiB;aACxB,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EACD,CAAC,mBAAmB,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CACrD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,OAAO;YACL,QAAQ;YACR,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;YAClD,OAAO,EAAE;gBACP,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,IAAI;aACnB;YACD,OAAO,EAAE,KAAK;YACd,IAAI;YACJ,IAAI;YACJ,mBAAmB;YACnB,KAAK;YACL,GAAG;YACH,MAAM;SACP,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NmrData2DContent } from 'cheminfo-types';
|
|
2
|
+
import type { Reduce2DSpectrumOptions } from './use2DReducer.tsx';
|
|
3
|
+
export declare function reduce2DSpectrum(data: NmrData2DContent, options?: Reduce2DSpectrumOptions): NmrData2DContent;
|
|
4
|
+
//# sourceMappingURL=reduce2DSpectrum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduce2DSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/reduce2DSpectrum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,gBAAgB,EACtB,OAAO,GAAE,uBAA4B,oBA2FtC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export function reduce2DSpectrum(data, options = {}) {
|
|
2
|
+
const { minY: originalMinY, minX: originalMinX, maxY: originalMaxY, maxX: originalMaxX, z, } = data;
|
|
3
|
+
const { numberOfPoints = 512, fromX = originalMinX, fromY = originalMinY, toX = originalMaxX, toY = originalMaxY, } = options;
|
|
4
|
+
const nbPointsY = z.length;
|
|
5
|
+
const nbPointsX = z[0]?.length || 0;
|
|
6
|
+
if (nbPointsX <= numberOfPoints && nbPointsY <= numberOfPoints) {
|
|
7
|
+
return data;
|
|
8
|
+
}
|
|
9
|
+
// need to find the indices in X and Y taking care that we are not out of bounds
|
|
10
|
+
const deltaX = (originalMaxX - originalMinX) / (nbPointsX - 1);
|
|
11
|
+
const deltaY = (originalMaxY - originalMinY) / (nbPointsY - 1);
|
|
12
|
+
const indexFromX = Math.max(0, Math.floor((fromX - originalMinX) / deltaX));
|
|
13
|
+
const indexToX = Math.min(nbPointsX - 1, Math.ceil((toX - originalMinX) / deltaX));
|
|
14
|
+
const indexFromY = Math.max(0, Math.floor((fromY - originalMinY) / deltaY));
|
|
15
|
+
const indexToY = Math.min(nbPointsY - 1, Math.ceil((toY - originalMinY) / deltaY));
|
|
16
|
+
const sourceNbPointsX = indexToX - indexFromX + 1;
|
|
17
|
+
const sourceNbPointsY = indexToY - indexFromY + 1;
|
|
18
|
+
const newNbPointsX = Math.min(sourceNbPointsX, numberOfPoints);
|
|
19
|
+
const newNbPointsY = Math.min(sourceNbPointsY, numberOfPoints);
|
|
20
|
+
// create the result object and fill with typed arrays
|
|
21
|
+
const reducedMatrix = [];
|
|
22
|
+
for (let i = 0; i < newNbPointsY; i++) {
|
|
23
|
+
reducedMatrix.push(new Float64Array(newNbPointsX));
|
|
24
|
+
}
|
|
25
|
+
// Fill the reducedMatrix by aggregating the original values in each rectangle.
|
|
26
|
+
// If the sum of values in the rectangle is positive, take the max; otherwise take the min.
|
|
27
|
+
for (let newRow = 0; newRow < newNbPointsY; newRow++) {
|
|
28
|
+
const srcRowStart = indexFromY + Math.floor((newRow * sourceNbPointsY) / newNbPointsY);
|
|
29
|
+
const srcRowEnd = indexFromY + Math.floor(((newRow + 1) * sourceNbPointsY) / newNbPointsY);
|
|
30
|
+
for (let newCol = 0; newCol < newNbPointsX; newCol++) {
|
|
31
|
+
const srcColStart = indexFromX + Math.floor((newCol * sourceNbPointsX) / newNbPointsX);
|
|
32
|
+
const srcColEnd = indexFromX +
|
|
33
|
+
Math.floor(((newCol + 1) * sourceNbPointsX) / newNbPointsX);
|
|
34
|
+
let sum = 0;
|
|
35
|
+
let min = Number.POSITIVE_INFINITY;
|
|
36
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
37
|
+
for (let row = srcRowStart; row < srcRowEnd; row++) {
|
|
38
|
+
const rowData = z[row];
|
|
39
|
+
for (let col = srcColStart; col < srcColEnd; col++) {
|
|
40
|
+
const value = rowData[col];
|
|
41
|
+
sum += value;
|
|
42
|
+
if (value < min)
|
|
43
|
+
min = value;
|
|
44
|
+
if (value > max)
|
|
45
|
+
max = value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
reducedMatrix[newRow][newCol] = sum >= 0 ? max : min;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
...data,
|
|
53
|
+
minX: originalMinX + indexFromX * deltaX,
|
|
54
|
+
maxX: originalMinX + indexToX * deltaX,
|
|
55
|
+
minY: originalMinY + indexFromY * deltaY,
|
|
56
|
+
maxY: originalMinY + indexToY * deltaY,
|
|
57
|
+
z: reducedMatrix,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=reduce2DSpectrum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduce2DSpectrum.js","sourceRoot":"","sources":["../../../src/component/hooks/reduce2DSpectrum.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,gBAAgB,CAC9B,IAAsB,EACtB,UAAmC,EAAE;IAErC,MAAM,EACJ,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,YAAY,EAClB,CAAC,GACF,GAAG,IAAI,CAAC;IACT,MAAM,EACJ,cAAc,GAAG,GAAG,EACpB,KAAK,GAAG,YAAY,EACpB,KAAK,GAAG,YAAY,EACpB,GAAG,GAAG,YAAY,EAClB,GAAG,GAAG,YAAY,GACnB,GAAG,OAAO,CAAC;IACZ,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,MAAM,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC;IAEpC,IAAI,SAAS,IAAI,cAAc,IAAI,SAAS,IAAI,cAAc,EAAE,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gFAAgF;IAChF,MAAM,MAAM,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAE/D,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,I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GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACvD,CAAC;IACH,CAAC;IAED,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM;QACxC,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,MAAM;QACtC,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM;QACxC,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,MAAM;QACtC,CAAC,EAAE,aAAa;KACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
|
+
import type { NmrData2DContent } from 'cheminfo-types';
|
|
3
|
+
export interface SpectrumFTData extends Pick<Spectrum2D, 'display' | 'id'> {
|
|
4
|
+
data: NmrData2DContent;
|
|
5
|
+
}
|
|
6
|
+
export declare function use2DReducer(): SpectrumFTData[];
|
|
7
|
+
export interface Reduce2DSpectrumOptions {
|
|
8
|
+
numberOfPoints?: number;
|
|
9
|
+
fromX?: number;
|
|
10
|
+
toX?: number;
|
|
11
|
+
fromY?: number;
|
|
12
|
+
toY?: number;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=use2DReducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use2DReducer.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use2DReducer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AASvD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IACxE,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,wBAAgB,YAAY,IAAI,cAAc,EAAE,CAiC/C;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { isFt2DSpectrum } from "../../data/data2d/Spectrum2D/isSpectrum2D.js";
|
|
3
|
+
import { useChartData } from "../context/ChartContext.js";
|
|
4
|
+
import { getSpectraByNucleus } from "../utility/getSpectraByNucleus.js";
|
|
5
|
+
import { reduce2DSpectrum } from "./reduce2DSpectrum.js";
|
|
6
|
+
export function use2DReducer() {
|
|
7
|
+
const { xDomain, yDomain, view: { spectra: { activeTab }, }, data, } = useChartData();
|
|
8
|
+
const [fromX, toX] = xDomain;
|
|
9
|
+
const [fromY, toY] = yDomain;
|
|
10
|
+
return useMemo(() => {
|
|
11
|
+
const outputSpectra = [];
|
|
12
|
+
for (const spectrum of getSpectraByNucleus(activeTab, data).filter(isFt2DSpectrum)) {
|
|
13
|
+
const { id, display, data } = spectrum;
|
|
14
|
+
const { rr } = data;
|
|
15
|
+
const reducedData = reduce2DSpectrum(rr, {
|
|
16
|
+
fromX,
|
|
17
|
+
fromY,
|
|
18
|
+
toX,
|
|
19
|
+
toY,
|
|
20
|
+
});
|
|
21
|
+
outputSpectra.push({
|
|
22
|
+
data: reducedData,
|
|
23
|
+
id,
|
|
24
|
+
display,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return outputSpectra;
|
|
28
|
+
}, [activeTab, data, fromX, fromY, toX, toY]);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=use2DReducer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use2DReducer.js","sourceRoot":"","sources":["../../../src/component/hooks/use2DReducer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CA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IAAI,kBAAkB,CAAC;IACpE,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,SAAS,SAAS,CAAC,eAA6B,EAAE,IAAkB;IAClE,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QAClC,IACE,eAAe,CAAC,GAAyB,CAAC;YAC1C,IAAI,CAAC,GAAyB,CAAC,EAC/B,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCombinedRefs.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useCombinedRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,CAAC,EACvC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"useCombinedRefs.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useCombinedRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,CAAC,EACvC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,yBAmBpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCombinedRefs.js","sourceRoot":"","sources":["../../../src/component/hooks/useCombinedRefs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,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
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateNmriumZip.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useCreateNmriumZip.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,wBAAgB,kBAAkB,cAMd,kBAAkB,KAAG,OAAO,CAAC,IAAI,CAAC,CAoBrD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { toJSON } from "../../data/SpectraManager.js";
|
|
3
|
+
import { useChartData } from "../context/ChartContext.js";
|
|
4
|
+
import { useCore } from "../context/CoreContext.js";
|
|
5
|
+
import { usePreferences } from "../context/PreferencesContext.js";
|
|
6
|
+
export function useCreateNmriumZip() {
|
|
7
|
+
const state = useChartData();
|
|
8
|
+
const preferencesState = usePreferences();
|
|
9
|
+
const core = useCore();
|
|
10
|
+
return useCallback(async (include) => {
|
|
11
|
+
const nmriumState = toJSON(core, state, preferencesState, {
|
|
12
|
+
serialize: false,
|
|
13
|
+
exportTarget: 'nmrium',
|
|
14
|
+
});
|
|
15
|
+
const archive = await core.serializeNmriumArchive({
|
|
16
|
+
state: nmriumState,
|
|
17
|
+
aggregator: state.aggregator,
|
|
18
|
+
includeData: include.dataType !== 'NO_DATA',
|
|
19
|
+
externalData: include.dataType === 'SELF_CONTAINED' ? 'embedded' : 'linked',
|
|
20
|
+
includeSettings: include.settings,
|
|
21
|
+
includeView: include.view,
|
|
22
|
+
});
|
|
23
|
+
return new Blob([archive], {
|
|
24
|
+
type: 'chemical/x-nmrium+zip',
|
|
25
|
+
});
|
|
26
|
+
}, [core, preferencesState, state]);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=useCreateNmriumZip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateNmriumZip.js","sourceRoot":"","sources":["../../../src/component/hooks/useCreateNmriumZip.ts"],"names":[],"m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